Create a new PublicKey object
ed25519 public key as buffer or base-58 encoded string
Static
defaultDefault 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
Static
createAsync version of createProgramAddressSync For backwards compatibility
Use createProgramAddressSync instead
Static
createStatic
createDerive a public key from another key, a seed, and a program ID. The program ID will also serve as the owner of the public key, giving it permission to write data to the account.
Static
decodeStatic
decodeStatic
findAsync version of findProgramAddressSync For backwards compatibility
Use findProgramAddressSync instead
Static
findFind 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.
Static
isCheck that a pubkey is on the ed25519 curve.
Static
unique
A public key