EcdsaSignature

public struct EcdsaSignature

EcdsaSignature manages an ECDSA signature with an option to convert a high s to low s.

  • r

    A r curve data format.

    Declaration

    Swift

    public var r: Data
  • s

    A s curve data format.

    Declaration

    Swift

    public var s: Data
  • der

    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

    Option to convert a high s to low s.

    curve

    The curve (R1 or K1).

  • Init an EcdsaSignature.

    Declaration

    Swift

    public init(r: Data, s: Data)

    Parameters

    r

    A r curve data format.

    s

    A s curve data format.