Constructors

  • Create a Signer instance from a given private key

    Parameters

    • privateKey: BytesLike

      The private key to use for signing

    Returns Signer

    A new Signer instance

Properties

address: Address
compressedPublicKey: string
privateKey: string
publicKey: string

Methods

  • Add point on the current elliptic curve

    Parameters

    Returns string

    compressed point on the curve

  • Extended publicKey from a compact publicKey

    Parameters

    Returns string

    extended publicKey

  • Generate a random privateKey

    Parameters

    • Optionalentropy: BytesLike

      Adds extra entropy to generate the privateKey

    Returns string | Uint8Array

    random 32-byte hashed

  • Recover the address from a signature performed with sign.

    Parameters

    Returns Address

    Address from signature

  • Recover the public key from a signature performed with sign.

    Parameters

    Returns string

    public key from signature from the