Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExtraNonceData

Represents arbitrary extra data included in the nonce by the user

Hierarchy

  • ExtraNonceData

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • Creates a new instance of the field from just the extra data to be included

    Parameters

    • data: Buffer

      the arbitrary data to be included in the field

    Returns ExtraNonceData

Accessors

data

  • get data(): Buffer

size

  • get size(): number

tag

Methods

toBuffer

  • toBuffer(): Buffer
  • Represents the field as a Buffer

    Returns Buffer

    the Buffer representation of the object

toString

  • toString(): string
  • Represents the field as a hexadecimal string (blob)

    Returns string

    the hexadecimal (blob) representation of the object

Static from

  • Creates a new instance of the field using a Buffer or Blob copy of field created through other means

    Parameters

    • data: Buffer | string

      the data that makes up the nonce field

    Returns ExtraNonceData

    the new object

Generated using TypeDoc