]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Hide derived fields in TxCreationKeys
authorDevrandom <c1.devrandom@niftybox.net>
Fri, 17 Jan 2020 20:46:54 +0000 (12:46 -0800)
committerMatt Corallo <git@bluematt.me>
Mon, 20 Jan 2020 01:40:49 +0000 (20:40 -0500)
lightning/src/ln/chan_utils.rs

index 5338c06c5b839fb099e0ac608cca8dfc7178f790..aa212b2d2d2d4920b3bc1860449c6aa6f0f8d13d 100644 (file)
@@ -124,15 +124,15 @@ pub struct TxCreationKeys {
        pub per_commitment_point: PublicKey,
        /// The revocation key which is used to allow the owner of the commitment transaction to
        /// provide their counterparty the ability to punish them if they broadcast an old state.
-       pub revocation_key: PublicKey,
+       pub(crate) revocation_key: PublicKey,
        /// A's HTLC Key
-       pub a_htlc_key: PublicKey,
+       pub(crate) a_htlc_key: PublicKey,
        /// B's HTLC Key
-       pub b_htlc_key: PublicKey,
+       pub(crate) b_htlc_key: PublicKey,
        /// A's Payment Key (which isn't allowed to be spent from for some delay)
-       pub a_delayed_payment_key: PublicKey,
+       pub(crate) a_delayed_payment_key: PublicKey,
        /// B's Payment Key
-       pub b_payment_key: PublicKey,
+       pub(crate) b_payment_key: PublicKey,
 }
 
 /// One counterparty's public keys which do not change over the life of a channel.