NearApi.KeyPair (near_api v0.1.6)

Key pair functionality for Ed25519 curve: generating key pairs, encoding key pairs, signing and verifying.

Link to this section Summary

Types

t()

Type of the key pair struct

Functions

Create Key Pair from a B58 encoded secret key

Create Key Pair from public and secret keys

Sign a message with a secret key Secret key must be

Link to this section Types

Specs

t() :: %NearApi.KeyPair{
  public_key: NearApi.PublicKey.t(),
  secret_key: String.t()
}

Type of the key pair struct

Link to this section Functions

Link to this function

from_string(encoded_secret_key)

Create Key Pair from a B58 encoded secret key

Link to this function

key_pair(public_key, secret_key)

Create Key Pair from public and secret keys

Link to this function

signature(msg, key_pair)

Sign a message with a secret key Secret key must be