zcash / orchard

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

API changes required for FROST #430

Open conradoplg opened 3 months ago

conradoplg commented 3 months 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 3 months 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 3 months ago

please edit:

pacu commented 3 months 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