zcash / orchard

Implementation of the Zcash Orchard Protocol
https://zcash.github.io/orchard/
Other
53 stars 37 forks source link

API changes required for FROST #430

Open conradoplg opened 1 month ago

conradoplg commented 1 month ago

I've updated our signing tool to the latest ECC crates and mapped out the API changes that are required in this crate:

My intention is to spark discussion on these API changes but let me know if you'd prefer individual tickets for each of those. I can also create PRs if you're happy with the proposed APIs or can also create PRs with other APIs you suggest.

conradoplg commented 1 month ago

I realized there is a chicken-and-egg problem regarding the second approach to alpha handling:

So it seems the "FROST alpha generation" can't be used.

pacu commented 1 month ago

please edit:

pacu commented 1 month ago

please edit: Allow creating a FullViewingKey from a given SpendValidatingKey. The other components can be randomly generated, but there may be some utility in specifying them too. Locally I did this by adding a FullViewingKey::from_sk_ak(sk: &SpendingKey, ak: SpendValidatingKey) method, but not sure what is the best approach.

https://github.com/zcash/orchard/pull/432