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

Contains the x, y, and z of an elliptic curve point.

Link to this section Summary

Functions

is_inf returns whether or not point P is the point at infinity, ie. P.x == P.y == 0

parse_public_key parses a public key

sec serializes a compressed public key to binary

serialize_public_key serializes a compressed public key to string

Link to this section Types

Specs

t() :: %Bitcoinex.Secp256k1.Point{x: integer(), y: integer(), z: integer()}

Link to this section Functions

Specs

is_inf(t()) :: boolean()

is_inf returns whether or not point P is the point at infinity, ie. P.x == P.y == 0

Link to this macro

is_point(term)

View Source (macro)

Specs

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

parse_public_key parses a public key

Specs

sec(t()) :: binary()

sec serializes a compressed public key to binary

Link to this function

serialize_public_key(pubkey)

View Source

Specs

serialize_public_key(t()) :: String.t()

serialize_public_key serializes a compressed public key to string