keybase / saltpack

a modern crypto messaging format
https://saltpack.org/
BSD 3-Clause "New" or "Revised" License
989 stars 62 forks source link

Add GetRaw{Public,Secret}Key functions #63

Closed geoah closed 6 years ago

geoah commented 6 years ago

This should allow retrieving the secret (and public) keys from SecretKey and SigningSecretKey; and closes #62.

Initially I wanted to return RawBoxKeys, but the SigningSecretKey.sec is a [64]byte and I didn't want one of the functions to return a completely different type.

@oconnor663 if you have any ideas for a better interface please do share them and I can fix this.

Thank you.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.07%) to 84.57% when pulling 6063bba33c207e5ec57c094823daf73950f2479b on geoah:master into 86c16c4c9f8282a8b5fea358e684c1c2fa89865d on keybase:master.

oconnor663 commented 6 years ago

This looks great, thank you!