pub struct LndKeyDerive { /* private fields */ }
Expand description
LND compatible derivation
Trait Implementations§
Source§impl KeyDerive for LndKeyDerive
impl KeyDerive for LndKeyDerive
Source§fn master_key(&self, seed: &[u8]) -> ExtendedPrivKey
fn master_key(&self, seed: &[u8]) -> ExtendedPrivKey
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: &ExtendedPrivKey,
_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: &ExtendedPrivKey, _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 LndKeyDerive
impl RefUnwindSafe for LndKeyDerive
impl Send for LndKeyDerive
impl Sync for LndKeyDerive
impl Unpin for LndKeyDerive
impl UnwindSafe for LndKeyDerive
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> 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