Skip to main content

Function: privateKeyFromPhrase()

function privateKeyFromPhrase(mnemonic): 0x${string}

Generate the private key from the mnemonic phrase.

Parameters

ParameterTypeDescription

mnemonic

string

The mnemonic phrase to generate the private key from.

Returns

0x${string}

The private key.

Defined

@nilfoundation/niljs/src/signers/mnemonic.ts:12