Initializer
init(dataRepresentation:keyParity:)
Creates a P256K.Signing.XonlyKey from a 32-byte X-coordinate and its Y-coordinate parity.
- 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) where D : ContiguousBytes
Parameters
-
data
-
The 32-byte X coordinate of the x-only public key.
-
keyParity
-
The Y-coordinate parity as Int32: 0 = even, 1 = odd.