Skip to content

Commit

Permalink
add: instructions for getkeypair ..
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wang committed Jul 25, 2020
1 parent f3def4e commit c8c13bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ const hd = require("../index")(mnemonic)
console.log("TRX",trxAddr.address)
```

** Get keypair ** [get keypair example](./test/index.getkeypair.test.js)
**Get keypair** [get keypair example](./test/index.getkeypair.test.js)
```js
let {address, pri, pub} = await hd.BTC.getAddressKeyPair(hdIndex)
```

** Get address using private key or public key **
**Get address using private key or public key**
```js
let priAddr = await hd.BTC.getAddressByPrivateKey(pri)
console.assert(priAddr.address == address)
Expand Down

0 comments on commit c8c13bc

Please sign in to comment.