File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,10 @@ impl KeyAggCache {
307
307
/// let _agg_pk = key_agg_cache.agg_pk();
308
308
/// # }
309
309
/// ```
310
+ ///
311
+ /// # Panics
312
+ ///
313
+ /// Panics if an empty slice of pubkeys is provided.
310
314
pub fn new < C : Verification > ( secp : & Secp256k1 < C > , pubkeys : & [ & PublicKey ] ) -> Self {
311
315
let cx = secp. ctx ( ) . as_ptr ( ) ;
312
316
@@ -729,6 +733,10 @@ impl AggregatedNonce {
729
733
/// let aggnonce = AggregatedNonce::new(&secp, &[&pub_nonce1, &pub_nonce2]);
730
734
/// # }
731
735
/// ```
736
+ /// # Panics
737
+ ///
738
+ /// Panics if an empty slice of nonces is provided.
739
+ ///
732
740
pub fn new < C : Signing > ( secp : & Secp256k1 < C > , nonces : & [ & PublicNonce ] ) -> Self {
733
741
if nonces. is_empty ( ) {
734
742
panic ! ( "Cannot aggregate an empty slice of nonces" ) ;
@@ -1140,6 +1148,10 @@ impl Session {
1140
1148
/// assert!(aggregated_signature.verify(&secp, &agg_pk, &msg_bytes).is_ok());
1141
1149
/// # }
1142
1150
/// ```
1151
+ ///
1152
+ /// # Panics
1153
+ ///
1154
+ /// Panics if an empty slice of partial signatures is provided.
1143
1155
pub fn partial_sig_agg ( & self , partial_sigs : & [ & PartialSignature ] ) -> AggregatedSignature {
1144
1156
if partial_sigs. is_empty ( ) {
1145
1157
panic ! ( "Cannot aggregate an empty slice of partial signatures" ) ;
You can’t perform that action at this time.
0 commit comments