EcdsaSignature
public struct EcdsaSignature
EcdsaSignature manages an ECDSA signature with an option to convert a high s
to low s
.
-
A r curve data format.
Declaration
Swift
public var r: Data
-
A s curve data format.
Declaration
Swift
public var s: Data
-
A signature in der format.
Declaration
Swift
public var der: Data { get }
-
Init an EcdsaSignature.
Declaration
Swift
public init?(der: Data?, requireLowS: Bool = true, curve: EllipticCurveType = .r1)
Parameters
der
A signature in der format.
requireLowS
curve
The curve (
R1
orK1
). -
Init an EcdsaSignature.
Declaration
Swift
public init(r: Data, s: Data)
Parameters
r
A r curve data format.
s
A s curve data format.