Skip to content

Commit

Permalink
Merge pull request #37 from Dapiguabc/master
Browse files Browse the repository at this point in the history
add browser tests.
  • Loading branch information
JeffWScott authored Nov 26, 2021
2 parents 0824204 + 8202806 commit bea1561
Show file tree
Hide file tree
Showing 31 changed files with 31,720 additions and 9,868 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ console.log(lamdenWallet)
```

### Create a new BIP39 / BIP 32 compatible wallet
- **BIP39** = 24 seed phrase
- **BIP39** = 24 word mnemonic
- **BIP32** = derivation path

```javascript
Expand All @@ -49,26 +49,28 @@ console.log(lamdenWallet)
sk: 'a6b72cb3d1160c26f9f39a8f1d4a3c7c0da2ac59d193b66ac5f919ec77f28915',
vk: '53d016586ce35c5f6ea581cadf4693dd2850621dfad6a2261e8dd311c83e11d5',
derivationIndex: 0,
seed: '3626c59ee5bce833a8bf5024645eb10415b39c6f9fd0ff0fb1b00b8ca9fd6ff4b8a0ed7077296cdaff1b955f03318f244dfd3fead404d93f11a3f301c0e3e1c6',
mnemonic: 'evidence rifle behave normal duty mean junk chicken salute relief raw chunk region ocean guard swarm taste toy loop ozone spell crumble apart echo'
}

```

### Restore a BIP39 / BIP 32 compatible wallet
- **BIP39** = 24 seed phrase
- **BIP39** = 24 word mnemonic
- **BIP32** = derivation path

```javascript
const mnemonic = 'evidence rifle behave normal duty mean junk chicken salute relief raw chunk region ocean guard swarm taste toy loop ozone spell crumble apart echo'
const seed = '3626c59ee5bce833a8bf5024645eb10415b39c6f9fd0ff0fb1b00b8ca9fd6ff4b8a0ed7077296cdaff1b955f03318f244dfd3fead404d93f11a3f301c0e3e1c6'
const derivationIndex = 0;
let lamdenWallet = Lamden.wallet.new_wallet_bip39(mnemonic, derivationIndex)
let lamdenWallet = Lamden.wallet.new_wallet_bip39(seed, derivationIndex)

console.log(lamdenWallet)
>> {
sk: 'a6b72cb3d1160c26f9f39a8f1d4a3c7c0da2ac59d193b66ac5f919ec77f28915',
vk: '53d016586ce35c5f6ea581cadf4693dd2850621dfad6a2261e8dd311c83e11d5',
derivationIndex: 0,
mnemonic: 'evidence rifle behave normal duty mean junk chicken salute relief raw chunk region ocean guard swarm taste toy loop ozone spell crumble apart echo'
seed: null,
mnemonic: null
}

```
Expand Down
Loading

0 comments on commit bea1561

Please sign in to comment.