Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Signature

ECDSA (secp256k1) signature.

Hierarchy

  • Signature

Index

Constructors

constructor

  • new Signature(data: Buffer, recovery: number): Signature

Properties

data

data: Buffer

recovery

recovery: number

Methods

recover

  • recover(message: Buffer, prefix?: undefined | string): PublicKey
  • Recover public key from signature by providing original signed message.

    Parameters

    • message: Buffer

      32-byte message that was used to create the signature.

    • Optional prefix: undefined | string

    Returns PublicKey

toBuffer

  • toBuffer(): Buffer

toString

  • toString(): string

Static fromBuffer

Static fromString

Generated using TypeDoc