Initializer
init(compactRepresentation:recoveryId:)
Creates an P256K.Recovery.ECDSASignature from a 64-byte compact representation and recovery ID via secp256k1_ecdsa_recoverable_signature_parse_compact.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
init<D>(compactRepresentation: D, recoveryId: Int32) throws where D : DataProtocol
Parameters
-
compactRepresentation
-
The 64-byte compact ECDSA signature (r || s).
-
recoveryId
-
The recovery ID (0–3) from the original signing operation.
Discussion
Throws
secp256k1Error.underlyingCryptoError if parsing fails.