Skip to main content

Utils

Methods

nametypeParameters Descriptionresponse
GenerateEd25519KeyPairfunctionnonePromise: KeyPairsType
DownloadKeyPairfunction1.text: string 2.filename: stringnone

GenerateEd25519KeyPair

import { GenerateEd25519KeyPair } from '@web3mq/client';

const keys = await GenerateEd25519KeyPair();

DownloadKeyPair

<button
onClick={() => {
DownloadKeyPair('text', 'filename');
}}>
DownloadKeyPair
</button>