Instance Property
publicKey
The full secp256k1 public key derived from this private key, in uncompressed form (65 bytes).
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var publicKey: P256K.Schnorr.PublicKey { get }
Discussion
Returned as a full P256K.Schnorr.PublicKey rather than an x-only key because some downstream operations (key aggregation, tweak addition on the full point) need both coordinates. Use xonly instead for direct BIP-340 verification.