Type Alias Bip340PublicKey

Source
pub type Bip340PublicKey = PublicKey<Bip340, 32>;
Expand description

A public key for BIP-340 (Schnorr) cryptographic operations.

Aliased Type§

pub struct Bip340PublicKey(pub(crate) [u8; 32], pub(crate) PhantomData<Bip340>);

Tuple Fields§

§0: [u8; 32]§1: PhantomData<Bip340>

Implementations§

Source§

impl Bip340PublicKey

Source

pub fn as_bytes(&self) -> &[u8; 32]

Returns the public key as a byte array.

Trait Implementations§

Source§

impl From<[u8; 32]> for Bip340PublicKey

Source§

fn from(k: [u8; 32]) -> Self

Converts to this type from the input type.