pub struct NativeKeyDerive { /* private fields */ }Expand description
CLN compatible derivation
Implementations§
Trait Implementations§
Source§impl Clone for NativeKeyDerive
impl Clone for NativeKeyDerive
Source§fn clone(&self) -> NativeKeyDerive
fn clone(&self) -> NativeKeyDerive
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeKeyDerive
impl Debug for NativeKeyDerive
Source§impl KeyDerive for NativeKeyDerive
impl KeyDerive for NativeKeyDerive
Source§fn master_key(&self, seed: &[u8]) -> Xpriv
fn master_key(&self, seed: &[u8]) -> Xpriv
Derive master key
Source§fn node_keys(
&self,
seed: &[u8],
secp_ctx: &Secp256k1<All>,
) -> (PublicKey, SecretKey)
fn node_keys( &self, seed: &[u8], secp_ctx: &Secp256k1<All>, ) -> (PublicKey, SecretKey)
Derive node key
Source§fn channel_keys(
&self,
_seed: &[u8],
keys_id: &[u8; 32],
_basepoint_index: u32,
_master_key: &Xpriv,
_secp_ctx: &Secp256k1<All>,
) -> (SecretKey, SecretKey, SecretKey, SecretKey, SecretKey, [u8; 32])
fn channel_keys( &self, _seed: &[u8], keys_id: &[u8; 32], _basepoint_index: u32, _master_key: &Xpriv, _secp_ctx: &Secp256k1<All>, ) -> (SecretKey, SecretKey, SecretKey, SecretKey, SecretKey, [u8; 32])
Derive channel keys.
funding_key, revocation_base_key, htlc_base_key, payment_key, delayed_payment_base_key, commitment_seed
Auto Trait Implementations§
impl Freeze for NativeKeyDerive
impl RefUnwindSafe for NativeKeyDerive
impl Send for NativeKeyDerive
impl Sync for NativeKeyDerive
impl Unpin for NativeKeyDerive
impl UnwindSafe for NativeKeyDerive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more