Instance Property
bytes
The 32-byte X coordinate of this x-only public key.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var bytes: [UInt8] { get }
Discussion
Stable across libsecp256k1 versions — safe to persist as a BIP-340-style key identifier. Pair with parity if the full (x, y) point must be reconstructed downstream (e.g. for Taproot tweak verification).