Function accountFromPrivateKey

  • Get account from private key

    Parameters

    • privateKey: Uint8Array
    • type: "SECP256K1" | "BLS"
    • network: Network
    • Optionalpath: string

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