A public key

Hierarchy

Constructors

Properties

default: PublicKey = ...

Default public key value. The base58-encoded string representation is all ones (as seen below) The underlying BN number is 32 bytes that are all zeros

Accessors

Methods

  • Find a valid program address

    Valid program addresses must fall off the ed25519 curve. This function iterates a nonce until it finds one that when combined with the seeds results in a valid program address.

    Parameters

    • seeds: (Uint8Array | Buffer)[]
    • programId: PublicKey

    Returns [PublicKey, number]

Generated using TypeDoc