Instance Property
parity
The Y-coordinate parity of the underlying secp256k1 public key, 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 }
Discussion
false means the Y coordinate is even (the canonical BIP-340 form); true means it is odd (the public key point is the negation of the even-Y point with the same X coordinate). BIP-340 verifiers operate against the even-Y representative, so the parity bit is tracked separately and consulted during Taproot tweak verification.