BSV.KeyPair (BSV v2.1.0) View Source

A keypair is a data structure consisting of both a BSV.PrivKey.t/0 and its corresponding BSV.PubKey.t/0.

Link to this section Summary

Types

t()

KeyPair struct

Functions

Generates and returns a new BSV.KeyPair.t/0.

Link to this section Types

Specs

t() :: %BSV.KeyPair{privkey: BSV.PrivKey.t(), pubkey: BSV.PubKey.t()}

KeyPair struct

Link to this section Functions

Specs

from_privkey(BSV.PrivKey.t()) :: t()

Returns a BSV.KeyPair.t/0 from the given BSV.PrivKey.t/0.

Specs

new(keyword()) :: t()

Generates and returns a new BSV.KeyPair.t/0.