Private constructorReadonly privateGet the [PrivateKey] of this [Keypair].
Readonly publicGet the [PublicKey] of this [Keypair].
Readonly xGet the XOnlyPublicKey of this [Keypair].
Get the [Address] of this Keypair's [PublicKey].
Receives a NetworkType
to determine the prefix of the address.
JavaScript: let address = keypair.toAddress(NetworkType.MAINNET);.
Get ECDSA [Address] of this Keypair's [PublicKey].
Receives a NetworkType
to determine the prefix of the address.
JavaScript: let address = keypair.toAddress(NetworkType.MAINNET);.
Static fromCreate a new [Keypair] from a [PrivateKey].
JavaScript: let privkey = new PrivateKey(hexString); let keypair = privkey.toKeypair();.
Static randomGenerated using TypeDoc
Data structure that contains a secret and public keys.