Initializer
init(dataRepresentation:)
Creates a MuSig2 aggregated nonce from its 66-byte BIP-327 wire representation via secp256k1_musig_aggnonce_parse.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init<D>(dataRepresentation: D) throws where D : ContiguousBytes
Parameters
-
dataRepresentation
-
Exactly 66 bytes in BIP-327 aggregated nonce format.
Discussion
Throws
secp256k1Error.underlyingCryptoError if the byte count is not 66 or parsing fails.