[][src]Struct elements::slip77::MasterBlindingKey

pub struct MasterBlindingKey(pub SecretKey);

A SLIP-77 master blinding key used to derive shared blinding keys.

Implementations

impl MasterBlindingKey[src]

pub fn new(seed: &[u8]) -> MasterBlindingKey[src]

Create a new master blinding key from a seed.

pub fn derive_blinding_key(&self, script_pubkey: &Script) -> SecretKey[src]

Derive a blinding private key for a given scriptPubkey.

pub fn derive_shared_nonce(
    &self,
    script_pubkey: &Script,
    other: &PublicKey
) -> Hash
[src]

Derive a shared nonce for a given scriptPubkey and a blinding pubkey. This is the same as performing ECDH with the secret key that [derive_blinding_key] returns.

Trait Implementations

impl Clone for MasterBlindingKey[src]

impl Debug for MasterBlindingKey[src]

impl Eq for MasterBlindingKey[src]

impl PartialEq<MasterBlindingKey> for MasterBlindingKey[src]

impl StructuralEq for MasterBlindingKey[src]

impl StructuralPartialEq for MasterBlindingKey[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.