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 {
307307 /// let _agg_pk = key_agg_cache.agg_pk();
308308 /// # }
309309 /// ```
310+ ///
311+ /// # Panics
312+ ///
313+ /// Panics if an empty slice of pubkeys is provided.
310314 pub fn new < C : Verification > ( secp : & Secp256k1 < C > , pubkeys : & [ & PublicKey ] ) -> Self {
311315 let cx = secp. ctx ( ) . as_ptr ( ) ;
312316
@@ -727,6 +731,10 @@ impl AggregatedNonce {
727731 /// let aggnonce = AggregatedNonce::new(&secp, &[&pub_nonce1, &pub_nonce2]);
728732 /// # }
729733 /// ```
734+ /// # Panics
735+ ///
736+ /// Panics if an empty slice of nonces is provided.
737+ ///
730738 pub fn new < C : Signing > ( secp : & Secp256k1 < C > , nonces : & [ & PublicNonce ] ) -> Self {
731739 if nonces. is_empty ( ) {
732740 panic ! ( "Cannot aggregate an empty slice of nonces" ) ;
@@ -1137,6 +1145,10 @@ impl Session {
11371145 /// assert!(aggregated_signature.verify(&secp, &agg_pk, &msg_bytes).is_ok());
11381146 /// # }
11391147 /// ```
1148+ ///
1149+ /// # Panics
1150+ ///
1151+ /// Panics if an empty slice of partial signatures is provided.
11401152 pub fn partial_sig_agg ( & self , partial_sigs : & [ & PartialSignature ] ) -> AggregatedSignature {
11411153 if partial_sigs. is_empty ( ) {
11421154 panic ! ( "Cannot aggregate an empty slice of partial signatures" ) ;
You can’t perform that action at this time.
0 commit comments