Skip to main content

derive_authentication_key

Function derive_authentication_key 

Source
pub fn derive_authentication_key(public_key: &[u8], scheme: u8) -> [u8; 32]
Expand description

Derives an authentication key from a public key and scheme.

The authentication key is SHA3-256(public_key_bytes || scheme_byte).