Instance Method
signature(for:)
Generates a lower-S normalized ECDSA signature by first hashing data with SHA-256, then signing with secp256k1_ecdsa_sign.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
func signature<D>(for data: D) -> P256K.Signing.ECDSASignature where D : DataProtocol
Parameters
-
data
-
The message bytes to hash and sign.
Return Value
An P256K.Signing.ECDSASignature in lower-S normalized form.