Initializer
init(dataRepresentation:)
Creates a public nonce from a 66-byte serialized representation.
- 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
-
A 66-byte serialized public nonce.
Discussion
Parses the BIP-327 wire format via secp256k1_musig_pubnonce_parse.
Throws
secp256k1Error.underlyingCryptoError if the byte count is wrong or parsing fails.