pub fn public_from_secret_key(secret_key: PrivKey) -> PyResult<PubKey>
Returns the corresponding public key for the given secret key.
secret_key
- The sr25519 secret key, comprised of the 32 byte scalar and 32 byte nonce.
The 32-byte public key corresponding to the provided secret key.
ValueError
- If the provided secret key is invalid.