Test cases for message encryption/decryption size limits
[rust-lightning] / lightning / src / ln / chan_utils.rs
index 20ebc3520bfd670db5b71ed32b8b5577bf52d3ad..d780c33c1462b28f322356e28a27788d1fa99c10 100644 (file)
@@ -52,7 +52,8 @@ impl HTLCType {
 // Various functions for key derivation and transaction creation for use within channels. Primarily
 // used in Channel and ChannelMonitor.
 
-pub(super) fn build_commitment_secret(commitment_seed: &[u8; 32], idx: u64) -> [u8; 32] {
+/// Build the commitment secret from the seed and the commitment number
+pub fn build_commitment_secret(commitment_seed: &[u8; 32], idx: u64) -> [u8; 32] {
        let mut res: [u8; 32] = commitment_seed.clone();
        for i in 0..48 {
                let bitpos = 47 - i;