Function accountFromMnemonic

  • Get HD account from mnemonic

    Parameters

    • mnemonic: string
    • type: "SECP256K1" | "BLS"
    • path: string
    • Optionalpassword: string
    • Optionalnetwork: Network

    Returns {
        address: AddressSecp256k1 | AddressBLS;
        path: string;
        privateKey: Uint8Array;
        pubKey: Uint8Array;
        type: "SECP256K1" | "BLS";
    }