Instance Property
compactRepresentation
The 64-byte compact representation of the signature (r || s in big-endian), produced by secp256k1_ecdsa_signature_serialize_compact.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
var compactRepresentation: Data { get }
Mentioned In
Discussion
Stable wire format suitable for Bitcoin witness fields, Nostr events, and other contexts that expect a fixed-length signature. The two 32-byte halves are the big-endian encodings of the r and s scalars respectively.