Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@

First of all, installation step:

* With npm
- With npm

```
npm install @nolanle/mixlib
```

* With yarn
- With yarn

```
yarn add @nolanle/mixlib
```

## Usages

* Generate Master Key and Mnemonic
- Generate Master Key and Mnemonic

```
import {create, Network} from '@nolanle/mixlib;
Expand All @@ -36,14 +36,14 @@ const masterKey = await create('Master Key', count);
console.log(masterKey.mnemonic);
```

* Derive master key to accounts
- Derive master key to accounts

```
const network = new Network('Ethereum', 'ETH', 18, 60);
const ethAccount = masterKey.derive(network);
```

* Working with account
- Working with account

```
const address = account.toAddress();
Expand Down