You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change RevocationKey args to make clear one side is a countersig
935a716 changed the parameter
names to `RevocationKey` derivation to remove the naming which made
clear one of the two parameters is a countersignatory key, which is
restored here.
let countersignatory_contrib = basepoint.to_public_key().mul_tweak(&secp_ctx,&Scalar::from_be_bytes(rev_append_commit_hash_key).unwrap())
215
+
let countersignatory_contrib = countersignatory_basepoint.to_public_key().mul_tweak(&secp_ctx,&Scalar::from_be_bytes(rev_append_commit_hash_key).unwrap())
216
216
.expect("Multiplying a valid public key by a hash is expected to never fail per secp256k1 docs");
217
217
let broadcaster_contrib = (&per_commitment_point).mul_tweak(&secp_ctx,&Scalar::from_be_bytes(commit_append_rev_hash_key).unwrap())
218
218
.expect("Multiplying a valid public key by a hash is expected to never fail per secp256k1 docs");
@@ -229,7 +229,6 @@ impl RevocationKey {
229
229
key_read_write!(RevocationKey);
230
230
231
231
232
-
233
232
#[cfg(test)]
234
233
mod test {
235
234
use bitcoin::secp256k1::{Secp256k1,SecretKey,PublicKey};
0 commit comments