- generateKeyPair(raw: true): { publicKey: Buffer; secretKey: Buffer }
-
Returns { publicKey: Buffer; secretKey: Buffer }
-
publicKey: Buffer
-
secretKey: Buffer
- generateKeyPair(raw?: false): { publicKey: AccountAddress; secretKey: string }
-
Returns { publicKey: AccountAddress; secretKey: string }
Generate a random ED25519 keypair
Returns
Key pair