pub struct LdkKeyDerive { /* private fields */ }Expand description
LDK compatible derivation
Trait Implementations§
Source§impl KeyDerive for LdkKeyDerive
impl KeyDerive for LdkKeyDerive
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 LdkKeyDerive
impl RefUnwindSafe for LdkKeyDerive
impl Send for LdkKeyDerive
impl Sync for LdkKeyDerive
impl Unpin for LdkKeyDerive
impl UnwindSafe for LdkKeyDerive
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