Skip to main content

public

Function public 

Source
pub fn public(sk: &[u8]) -> PublicKey
Expand description

Extracts a public key from a private key.

This function extracts the public key from a private key.

§Arguments

  • sk - The secret key as a slice of bytes.

§Returns

Returns the public key as a PublicKey.