@@ -1226,8 +1226,8 @@ impl Session {
1226
1226
/// assert!(session.partial_verify(
1227
1227
/// &secp,
1228
1228
/// &key_agg_cache,
1229
- /// partial_sig1,
1230
- /// pub_nonce1,
1229
+ /// & partial_sig1,
1230
+ /// & pub_nonce1,
1231
1231
/// pub_key1,
1232
1232
/// ));
1233
1233
/// # }
@@ -1236,8 +1236,8 @@ impl Session {
1236
1236
& self ,
1237
1237
secp : & Secp256k1 < C > ,
1238
1238
key_agg_cache : & KeyAggCache ,
1239
- partial_sig : PartialSignature ,
1240
- pub_nonce : PublicNonce ,
1239
+ partial_sig : & PartialSignature ,
1240
+ pub_nonce : & PublicNonce ,
1241
1241
pub_key : PublicKey ,
1242
1242
) -> bool {
1243
1243
let cx = secp. ctx ( ) . as_ptr ( ) ;
@@ -1591,12 +1591,12 @@ mod tests {
1591
1591
let partial_sign2 = session. partial_sign ( & secp, sec_nonce2, & keypair2, & key_agg_cache) ;
1592
1592
1593
1593
// Test partial signature verification
1594
- assert ! ( session. partial_verify( & secp, & key_agg_cache, partial_sign1, pub_nonce1, pubkey1) ) ;
1595
- assert ! ( session. partial_verify( & secp, & key_agg_cache, partial_sign2, pub_nonce2, pubkey2) ) ;
1594
+ assert ! ( session. partial_verify( & secp, & key_agg_cache, & partial_sign1, & pub_nonce1, pubkey1) ) ;
1595
+ assert ! ( session. partial_verify( & secp, & key_agg_cache, & partial_sign2, & pub_nonce2, pubkey2) ) ;
1596
1596
// Test that they are invalid if you switch keys
1597
- assert ! ( !session. partial_verify( & secp, & key_agg_cache, partial_sign2, pub_nonce2, pubkey1) ) ;
1598
- assert ! ( !session. partial_verify( & secp, & key_agg_cache, partial_sign2, pub_nonce1, pubkey2) ) ;
1599
- assert ! ( !session. partial_verify( & secp, & key_agg_cache, partial_sign2, pub_nonce1, pubkey1) ) ;
1597
+ assert ! ( !session. partial_verify( & secp, & key_agg_cache, & partial_sign2, & pub_nonce2, pubkey1) ) ;
1598
+ assert ! ( !session. partial_verify( & secp, & key_agg_cache, & partial_sign2, & pub_nonce1, pubkey2) ) ;
1599
+ assert ! ( !session. partial_verify( & secp, & key_agg_cache, & partial_sign2, & pub_nonce1, pubkey1) ) ;
1600
1600
1601
1601
// Test PartialSignature serialization/deserialization
1602
1602
let serialized_partial_sig = partial_sign1. serialize ( ) ;
0 commit comments