Keypair

Keypair

new Keypair(keys)

Keypair represents public (and secret) keys of the account.

Currently Keypair only supports ed25519 but in a future this class can be abstraction layer for other public-key signature systems.

Use more convenient methods to create Keypair object:

Source:
Parameters:
Name Type Description
keys object

At least one of keys must be provided.

Name Type Attributes Description
type string

Public-key signature system name. (currently only ed25519 keys are supported)

publicKey Buffer <optional>

Raw public key

secretKey Buffer <optional>

Raw secret key (32-byte secret seed in ed25519`)