pub fn sk_to_pk(sk: SecretKey) -> PublicKey
Expand description
(spec link)
Takes a secret key SK and outputs the corresponding public key PK.
Use keygen
to generate a brand new secret key, or os2ip
to load known bytes.
Implementation:
1. xP = SK * P
2. PK = point_to_pubkey(xP)
3. return PK