glethers/signer

Types

pub type Signature =
  secp256k1_gleam.Signature
pub type Signer {
  Signer(provider: provider.Provider, private_key: PrivateKey)
}

Constructors

  • Signer(provider: provider.Provider, private_key: PrivateKey)

Functions

pub fn sign_hash(
  private_key: PrivateKey,
  hash: Hash,
) -> Signature
pub fn sign_message(
  private_key: PrivateKey,
  message: String,
) -> Signature
pub fn sign_typed_data(
  private_key: PrivateKey,
  domain: TypedDataDomain,
  struct: a,
  encoder: fn(a) -> #(String, List(#(String, ComplexField))),
) -> Signature
pub fn verify_signature(
  private_key: PrivateKey,
  message: String,
  signature: Signature,
) -> Bool
Search Document