secp256k1_gleam

Types

pub type Signature {
  Signature(r: BitArray, s: BitArray, recovery_id_int: Int)
}

Constructors

  • Signature(r: BitArray, s: BitArray, recovery_id_int: Int)

Functions

pub fn create_public_key(
  private_key: BitArray,
) -> Result(BitArray, Error)
pub fn sign(
  message: BitArray,
  secret_key: BitArray,
) -> Result(Signature, Error)
pub fn verify(
  message: BitArray,
  signature: Signature,
  public_key: BitArray,
) -> Result(Nil, Error)
Search Document