Instance Property
parity
true if the full public key’s Y coordinate is odd (the x-only point is the negation of the original pubkey), false if even; as returned by secp256k1_xonly_pubkey_from_pubkey.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var parity: Bool { get }
Return Value
true if the original public key’s Y coordinate is odd, false if even.
Discussion
BIP-340 verifiers operate against the even-Y representative of a point, so the parity bit is tracked separately. true means the original pubkey had odd Y and had its sign flipped during x-only conversion.