w3f / schnorrkel

Schnorr VRFs and signatures on the Ristretto group
BSD 3-Clause "New" or "Revised" License
310 stars 93 forks source link

Add "hard" derivation paths #17

Closed burdges closed 5 years ago

burdges commented 5 years ago

I ignored the hard derivation paths because they're fairly trivial, but actually we should provide a hard derivation function from SecretKey::key to a new MiniSecretKey. I did not foresee anyone doing a hard derivation after a soft one, but given that bip32 supports this then some code bases may do it. Ignoring the SecretKey::nonce here avoids edge cases where someone changes the nonce.

burdges commented 5 years ago

We could add a test that this works as claimed above, but only one path so meh.