@types/eth-lightwallet
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

Installation

npm install --save @types/eth-lightwallet

Summary

This package contains type definitions for eth-lightwallet (https://github.com/ConsenSys/eth-lightwallet#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eth-lightwallet.

/// <reference types="node" />

export interface ECSignatureBuffer {
    v: number;
    r: Buffer;
    s: Buffer;
}
export namespace signing {
    function signTx(
        keystore: keystore,
        pwDerivedKey: Uint8Array,
        rawTx: string,
        signingAddress: string,
    ): string;
    function signMsg(
        keystore: keystore,
        pwDerivedKey: Uint8Array,
        rawMsg: string,
        signingAddress: string,
    ): ECSignatureBuffer;
    function signMsgHash(
        keystore: keystore,
        pwDerivedKey: Uint8Array,
        msgHash: string,
        signingAddress: string,
    ): ECSignatureBuffer;
    function concatSig(signature: any): string;
}

export class keystore {
    static createVault(
        options: any,
        callback?: (error: Error, keystore: keystore) => void,
    ): keystore;
    static generateRandomSeed(): string;
    static isSeedValid(seed: string): boolean;
    static deserialize(keystore: string): keystore;
    serialize(): string;
    keyFromPassword(
        password: string,
        callback?: (error: Error, pwDerivedKey: Uint8Array) => void,
    ): Uint8Array;
    isDerivedKeyCorrect(pwDerivedKey: Uint8Array): boolean;
    generateNewAddress(
        pwDerivedKey: Uint8Array,
        numberOfAddresses: number,
    ): void;
    getSeed(pwDerivedKey: Uint8Array): string;
    exportPrivateKey(address: string, pwDerivedKey: Uint8Array): string;
    getAddresses(): string[];
}

export interface VaultOptions {
    password: string;
    seedPhrase: string;
    salt?: string | undefined;
    hdPathString: string;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Leonid Logvinov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/eth-lightwallet

Weekly Downloads

379

Version

3.0.4

License

MIT

Unpacked Size

5.87 kB

Total Files

5

Last publish

Collaborators

  • types