ECSignature

public class ECSignature

ECSignature instances contain an ECDSA signature which consists of two byte arrays named r and s

Initializers

  • Creates a signature from its r and s components

    Declaration

    Swift

    public init(domain: Domain, r: Bytes, s: Bytes)

    Parameters

    domain

    The domain of the signature

    r

    The r component

    s

    The s component

  • Creates a signature from its ASN1 representation

    Throws

    An exception if the ASN1 structure is wrong

    Declaration

    Swift

    public convenience init(asn1: ASN1, domain: Domain) throws

    Parameters

    asn1

    The ASN1 representation of the signature

    domain

    The domain of the signature

Stored Properties

  • The domain of the signature

    Declaration

    Swift

    public let domain: Domain
  • r

    The r component of the signature

    Declaration

    Swift

    public let r: Bytes
  • s

    The s component of the signature

    Declaration

    Swift

    public let s: Bytes

Computed Properties

  • The ASN1 encoding of the signature

    Declaration

    Swift

    public var asn1: ASN1 { get }
  • Textual description of self

    Declaration

    Swift

    public var description: String { get }