Skip to content

Commit

Permalink
rebase 5.3.X [PATCH 079/142] Changed pub_nonce_sum and msg_to_sign to…
Browse files Browse the repository at this point in the history
… be public functions (mimblewimble#557)
  • Loading branch information
bayk committed Aug 1, 2024
1 parent f7fd71e commit b6ea624
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libwallet/src/slate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,9 @@ impl Slate {
}
}

// This is the msg that we will sign as part of the tx kernel.
// If lock_height is 0 then build a plain kernel, otherwise build a height locked kernel.
fn msg_to_sign(&self) -> Result<secp::Message, Error> {
/// This is the msg that we will sign as part of the tx kernel.
/// If lock_height is 0 then build a plain kernel, otherwise build a height locked kernel.
pub fn msg_to_sign(&self) -> Result<secp::Message, Error> {
let msg = self.kernel_features()?.kernel_sig_msg()?;
Ok(msg)
}
Expand Down Expand Up @@ -755,7 +755,7 @@ impl Slate {
}

/// Return the sum of public nonces
fn pub_nonce_sum(&self, secp: &Secp256k1) -> Result<PublicKey, Error> {
pub fn pub_nonce_sum(&self, secp: &Secp256k1) -> Result<PublicKey, Error> {
let pub_nonces: Vec<&PublicKey> = self
.participant_data
.iter()
Expand Down

0 comments on commit b6ea624

Please sign in to comment.