Class Web3IdSigner

A wrapper around an ed25519 keypair which is used by CIS4Contract methods for signing as various entities.

Hierarchy

  • Web3IdSigner

Constructors

Properties

Accessors

Methods

Constructors

  • Builds a Web3IdSigner from ed25519 keypair

    Parameters

    • privateKey: string

      the ed25519 private key used for signing

    • publicKey: string

      the ed25519 public key used for verifcation of signature

    Returns Web3IdSigner

Properties

privateKey: string

the ed25519 private key used for signing

publicKey: string

the ed25519 public key used for verifcation of signature

Accessors

Methods

  • Signs the message given

    Returns

    the signature on message

    Parameters

    • message: ArrayBuffer

      the message to sign

    Returns Promise<Buffer>

Generated using TypeDoc