[−][src]Struct elements::slip77::MasterBlindingKey
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]
&self,
script_pubkey: &Script,
other: &PublicKey
) -> Hash
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]
fn clone(&self) -> MasterBlindingKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MasterBlindingKey
[src]
impl Eq for MasterBlindingKey
[src]
impl PartialEq<MasterBlindingKey> for MasterBlindingKey
[src]
fn eq(&self, other: &MasterBlindingKey) -> bool
[src]
fn ne(&self, other: &MasterBlindingKey) -> bool
[src]
impl StructuralEq for MasterBlindingKey
[src]
impl StructuralPartialEq for MasterBlindingKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for MasterBlindingKey
impl Send for MasterBlindingKey
impl Sync for MasterBlindingKey
impl Unpin for MasterBlindingKey
impl UnwindSafe for MasterBlindingKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,