Struct lightning_signer::signer::derive::NativeKeyDerive
source · pub struct NativeKeyDerive { /* private fields */ }
Expand description
CLN compatible derivation
Trait Implementations§
source§impl KeyDerive for NativeKeyDerive
impl KeyDerive for NativeKeyDerive
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 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> 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