pub struct ChannelKeys {
    pub funding_key: SecretKey,
    pub revocation_base_key: SecretKey,
    pub payment_base_key: SecretKey,
    pub delayed_payment_base_key: SecretKey,
    pub htlc_base_key: SecretKey,
    pub commitment_seed: [u8; 32],
}
Expand description

Set of lightning keys needed to operate a channel as described in BOLT 3

Fields

funding_key: SecretKey

Private key of anchor tx

revocation_base_key: SecretKey

Local secret key for blinded revocation pubkey

payment_base_key: SecretKey

Local secret key used in commitment tx htlc outputs

delayed_payment_base_key: SecretKey

Local secret key used in HTLC tx

htlc_base_key: SecretKey

Local htlc secret key used in commitment tx htlc outputs

commitment_seed: [u8; 32]

Commitment seed

Implementations

Generate a set of lightning keys needed to operate a channel by HKDF-expanding a given random 32-byte seed

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Reads a Self in from the given Read
Writes self out to the given Writer
Writes self out to a Vec
Writes self out to a Vec

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.