[][src]Struct schnorr::keys::XPublicKey

pub struct XPublicKey {
    pub key: PublicKey,
    // some fields omitted
}

Xpub represents an extended public key.

Fields

key: PublicKey

Methods

impl XPublicKey[src]

pub fn derive_intermediate_key(
    &self,
    customize: impl FnOnce(&mut Transcript)
) -> XPublicKey
[src]

Returns a intermediate child pubkey. Users must provide customize, in order to separate sibling keys from one another through unique derivation paths.

pub fn derive_key(&self, customize: impl FnOnce(&mut Transcript)) -> PublicKey[src]

Returns a leaf Xpub, which can safely be shared. Users must provide customize, in order to separate sibling keys from one another through unique derivation paths.

pub fn to_bytes(&self) -> [u8; 64][src]

Serializes this Xpub to a sequence of bytes.

pub fn from_bytes(bytes: &[u8]) -> Option<Self>[src]

Decodes an Xpub from a 64-byte array, and fails if the provided array is not exactly 64 bytes, or if the compressed point fails to decompress.

Trait Implementations

impl Clone for XPublicKey[src]

impl Default for XPublicKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,