External module "utils/key"
Type aliases
RNG
RNG: function
Type declaration
-
-
Type parameters
-
T: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null
Parameters
Returns T
Functions
generateSeed
- generateSeed(rng: RNG, strength?: number): string
-
Parameters
-
-
Default value strength: number = 128
Returns string
generateWallet
- generateWallet(rng: RNG, path?: string, password?: string, strength?: number): object
-
Parameters
-
-
Default value path: string = `m/44'/118'/0'/0/0`
-
Default value password: string = ""
-
Default value strength: number = 256
Returns object
generateWalletFromMnemonic
- generateWalletFromMnemonic(mnemonic: string, path?: string, password?: string): PrivKey
-
Parameters
-
mnemonic: string
-
Default value path: string = `m/44'/118'/0'/0/0`
-
Default value password: string = ""