Generate a new key pair
ED25519
Create a new Ed25519 key pair used to sign transactions and queries on the Hedera network. The private key is kept confidential and is used to sign transactions that modify the state of an account, topic, token, smart contract, or file entity on the network. The public key can be shared with other users on the network.
Method
Type
Description
Ed25519PrivateKey.generate()
Ed25519PrivateKey
Generates a Ed25519 private key
Ed25519PrivateKey.generate().publicKey
Ed25519PublicKey
Gets the corresponding public key to the generated private key
ECDSA (secp256k1_)
Create a new ECDSA (secp256k1) key pair used to sign transactions and queries on a Hedera network. The private key is kept confidential and is used to sign transactions that modify the state of an account, topic, token, smart contract, or file entity on the network. The public key can be shared with other users on the network.
Not supported
Last updated