Curvy.Signature (Curvy v0.3.1) View Source
Module for converting signature R and S values to DER encoded or compact binaries.
Link to this section Summary
Link to this section Types
Specs
recovery_id() :: 0 | 1 | 2 | 3
Recovery ID
Specs
t() :: %Curvy.Signature{
crv: atom(),
r: integer(),
recid: recovery_id() | nil,
s: integer()
}
ECDSA Signature
Link to this section Functions
Specs
Normalizes the signature by enforcing Low-S values.
Returns a Signature.
See BIP 62 for more info.
Specs
Parsed the given binary signature in a Signature struct.
Parsed DER encoded and compact signatures. Returns :error if unable to parse.
Specs
Returns the signature as a 65 byte compact binary.
Returns the signature as a DER-encoded binary.