Initializer
init(aggregating:)
Creates a MuSig2 aggregated nonce by combining all signers’ public nonces via secp256k1_musig_nonce_agg.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init(aggregating pubnonces: [P256K.Schnorr.Nonce]) throws
Parameters
-
pubnonces
-
All signers’ P256K.Schnorr.Nonce public nonces; must include every participant.
Discussion
This step may be performed by any party (including an untrusted aggregator). If the aggregate is computed incorrectly, the final signature will be invalid but no key material is leaked.
Throws
secp256k1Error.underlyingCryptoError if secp256k1_musig_nonce_agg fails.