Instance Property
cache
The 197-byte opaque secp256k1_musig_keyagg_cache required for Taproot tweaking and signing sessions; must be preserved alongside the key bytes.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var cache: Data { get }
Discussion
The cache bytes are not a stable serialization format across libsecp256k1 versions — treat them as a within-process session token. For cross-process persistence, store them in an ephemeral location (e.g. alongside a one-shot signing session’s other state) rather than in long-lived configuration.