Structure
P256K.Signing.ECDSASignature
64-byte secp256k1 ECDSA signature in libsecp256k1 internal format, convertible to and from DER (variable-length, up to 72 bytes) and compact (exactly 64 bytes) representations.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
struct ECDSASignature
Mentioned In
Overview
All signatures produced by the signature(for:) overloads on P256K.Signing.PrivateKey are automatically normalized to lower-S form by secp256k1_ecdsa_sign per BIP-146. This normalization is required because secp256k1_ecdsa_verify only accepts lower-S signatures; a non-normalized signature will always fail verification.
The internal 64-byte data buffer is the opaque secp256k1_ecdsa_signature struct body declared in Vendor/secp256k1/include/secp256k1.h. Its byte layout is not a stable wire format across libsecp256k1 versions — use compactRepresentation or derRepresentation for persistence / transmission.
Topics
Construction
Serialized Forms
Instance Properties
Instance Methods