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

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

@type 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
@spec 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
@spec parse_signature(binary()) :: {:ok, t()} | {:error, String.t()}

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

Link to this function

serialize_signature(signature)

View Source
@spec serialize_signature(t()) :: binary()