Bitcoinex.Secp256k1.Signature (bitcoinex v0.1.6) View Source

Contains r,s in signature.

Link to this section Summary

Functions

der_parse_signature parses a DER binary to a Signature

der_serialize_signature returns the DER serialization of an ecdsa signature

accepts a compact signature and returns a Signature containing r,s

Link to this section Types

Specs

t() :: %Bitcoinex.Secp256k1.Signature{r: pos_integer(), s: pos_integer()}

Link to this section Functions

Link to this function

der_parse_signature(arg1)

View Source

der_parse_signature parses a DER binary to a Signature

Link to this function

der_serialize_signature(arg1)

View Source

Specs

der_serialize_signature(t()) :: binary()

der_serialize_signature returns the DER serialization of an ecdsa signature

Link to this function

parse_signature(compact_sig)

View Source

Specs

parse_signature(binary()) :: {:ok, t()} | {:error, String.t()}

accepts a compact signature and returns a Signature containing r,s