Initializer
init(dataRepresentation:keyParity:cache:)
Creates a MuSig x-only public key from 32-byte serialized data and a preserved key aggregation cache.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init<D>(dataRepresentation data: D, keyParity: Int32 = 0, cache: [UInt8] = []) where D : ContiguousBytes
Parameters
-
data
-
The 32-byte X coordinate of the aggregate public key.
-
keyParity
-
The Y-coordinate parity (0 = even, 1 = odd) as returned by secp256k1_xonly_pubkey_from_pubkey.
-
cache
-
The 197-byte secp256k1_musig_keyagg_cache from the original aggregate(_:) call.