mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Expose private keys from InMemoryChannelKeys publicly
As we drop the requirement that all ChannelKeys expose the private keys used, we should have a way to access the private keys in use when using InMemoryChannelKeys.
This commit is contained in:
parent
2087032e7a
commit
b1d536e57a
1 changed files with 6 additions and 6 deletions
|
@ -345,17 +345,17 @@ pub trait KeysInterface: Send + Sync {
|
||||||
/// A simple implementation of ChannelKeys that just keeps the private keys in memory.
|
/// A simple implementation of ChannelKeys that just keeps the private keys in memory.
|
||||||
pub struct InMemoryChannelKeys {
|
pub struct InMemoryChannelKeys {
|
||||||
/// Private key of anchor tx
|
/// Private key of anchor tx
|
||||||
funding_key: SecretKey,
|
pub funding_key: SecretKey,
|
||||||
/// Local secret key for blinded revocation pubkey
|
/// Local secret key for blinded revocation pubkey
|
||||||
revocation_base_key: SecretKey,
|
pub revocation_base_key: SecretKey,
|
||||||
/// Local secret key used for our balance in remote-broadcasted commitment transactions
|
/// Local secret key used for our balance in remote-broadcasted commitment transactions
|
||||||
payment_key: SecretKey,
|
pub payment_key: SecretKey,
|
||||||
/// Local secret key used in HTLC tx
|
/// Local secret key used in HTLC tx
|
||||||
delayed_payment_base_key: SecretKey,
|
pub delayed_payment_base_key: SecretKey,
|
||||||
/// Local htlc secret key used in commitment tx htlc outputs
|
/// Local htlc secret key used in commitment tx htlc outputs
|
||||||
htlc_base_key: SecretKey,
|
pub htlc_base_key: SecretKey,
|
||||||
/// Commitment seed
|
/// Commitment seed
|
||||||
commitment_seed: [u8; 32],
|
pub commitment_seed: [u8; 32],
|
||||||
/// Local public keys and basepoints
|
/// Local public keys and basepoints
|
||||||
pub(crate) local_channel_pubkeys: ChannelPublicKeys,
|
pub(crate) local_channel_pubkeys: ChannelPublicKeys,
|
||||||
/// Remote public keys and base points
|
/// Remote public keys and base points
|
||||||
|
|
Loading…
Add table
Reference in a new issue