# @types/eth-lightwallet

> TypeScript definitions for eth-lightwallet

Latest version **3.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/eth-lightwallet
pnpm add @types/eth-lightwallet
yarn add @types/eth-lightwallet
bun add @types/eth-lightwallet
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.4 |
| Published | 2023-11-07 |
| First published | 2018-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/eth-lightwallet
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eth-lightwallet
- npm.io page: https://npm.io/package/@types/eth-lightwallet

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 3.0.4 (latest) — 2023-11-07
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts2.4) — 2018-08-01
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-23

## README

# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eth-lightwallet/index.d.ts)
````ts
/// <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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Leonid Logvinov](https://github.com/LogvinovLeon).

---
_Source: https://npm.io/package/@types/eth-lightwallet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
