Instance Property
cache
Cached secp256k1_pubkey bytes associated with this x-only key, avoiding re-derivation on each operation that needs the full curve point.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var cache: Data { get }
Discussion
Important
These bytes are the opaque upstream secp256k1_pubkey struct and are not a stable serialization format across libsecp256k1 versions. Treat as a within-process session token; use dataRepresentation for persistence.