Structure
P256K.Signing.XonlyKey
The 32-byte x-only form of a secp256k1 P256K.Signing.PublicKey, as defined by BIP-340: the X coordinate of the public key point with implicit even-Y parity unless parity is true.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
struct XonlyKey
Mentioned In
Overview
Conversion uses secp256k1_xonly_pubkey_from_pubkey (declared in Vendor/secp256k1/include/secp256k1_extrakeys.h), which flips the sign of the point when its Y coordinate is odd and records the original parity so callers can reconstruct the full point later. Useful when pivoting from ECDSA-era verification into BIP-340 / Taproot workflows without regenerating the key material.
Topics
Inspection
Construction