createEd25519Keypair

Generates an Ed25519 keypair to be used as an account signer.

Example

createSigner();
function createEd25519Keypair(): Promise<Ed25519Keypair>;

Returns

let returnType: { privateKey: Hex; publicKey: Hex };

A promise resolving to the generated keypair.