Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Signature

ECDSA (secp256k1) signature.

Hierarchy

  • Signature

Index

Constructors

constructor

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

    • data: Buffer
    • recovery: number

    Returns 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
  • Returns Buffer

toString

  • toString(): string
  • Returns string

Static fromBuffer

  • Parameters

    • buffer: Buffer

    Returns Signature

Static fromString

  • Parameters

    • string: string

    Returns Signature

Generated using TypeDoc