Options
All
  • Public
  • Public/Protected
  • All
Menu

A Borsh-compatible public key object

The pattern for these objects is to have their properties dynamically assigned by borsh.decode, as opposed to via a constructor.

The imperative assignment operator (!) is used to avoid Typescript complaining about the above.

Hierarchy

  • Assignable
    • AssignablePublicKey

Index

Constructors

constructor

Properties

bytes

bytes: number[]

Methods

encode

  • encode(): Buffer

toPublicKey

  • toPublicKey(): PublicKey

toString

  • toString(): string

Static decode

  • decode<T>(data: Buffer): T
  • Type parameters

    • T: Assignable<T>

    Parameters

    • data: Buffer

    Returns T

Static empty

Static fromPublicKey

Static parse

Generated using TypeDoc