Skip to content

Commit b1d536e

Browse files
committed
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.
1 parent 2087032 commit b1d536e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/chain/keysinterface.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,17 @@ pub trait KeysInterface: Send + Sync {
345345
/// A simple implementation of ChannelKeys that just keeps the private keys in memory.
346346
pub struct InMemoryChannelKeys {
347347
/// Private key of anchor tx
348-
funding_key: SecretKey,
348+
pub funding_key: SecretKey,
349349
/// Local secret key for blinded revocation pubkey
350-
revocation_base_key: SecretKey,
350+
pub revocation_base_key: SecretKey,
351351
/// Local secret key used for our balance in remote-broadcasted commitment transactions
352-
payment_key: SecretKey,
352+
pub payment_key: SecretKey,
353353
/// Local secret key used in HTLC tx
354-
delayed_payment_base_key: SecretKey,
354+
pub delayed_payment_base_key: SecretKey,
355355
/// Local htlc secret key used in commitment tx htlc outputs
356-
htlc_base_key: SecretKey,
356+
pub htlc_base_key: SecretKey,
357357
/// Commitment seed
358-
commitment_seed: [u8; 32],
358+
pub commitment_seed: [u8; 32],
359359
/// Local public keys and basepoints
360360
pub(crate) local_channel_pubkeys: ChannelPublicKeys,
361361
/// Remote public keys and base points

0 commit comments

Comments
 (0)