Initializer
init(xonlyKey:)
Creates a compressed secp256k1 public key from an x-only key by prepending the 0x02 (even-Y) or 0x03 (odd-Y) parity prefix.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init(xonlyKey: P256K.Signing.XonlyKey)
Parameters
-
xonlyKey
-
The x-only public key to convert.