Type Definition crypto_addr::PubkeyBytes

source ·
pub type PubkeyBytes = [u8; 33];

Trait Implementations§

source§

impl Address for PubkeyBytes

Array of input bytes is interpreted as a compressed public key encoded with encoding described in SEC 1: Elliptic Curve Cryptography (Version 2.0) section 2.3.3 (page 10).

source§

fn addr(&self, opts: &AddressFormat) -> Result<String, Error>

Derive an address string from a public key (self). Parameters for the address format are given by opts. Returns Err if public key is not able to derive an address, i.e. if it is not the correct length.