Skip to content

Commit

Permalink
mod: params name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wang committed Aug 21, 2020
1 parent a91e3b0 commit 99ea30b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ let hd = hdAddress.HD(base58,hdAddress.keyType.base58)
hd.BTC.getCoinKeyPair(index, account, change)
hd.ETH.getCoinAddressKeyPair(index, account, change)
hd.TRX.getAddress(index, account, change)
hd.LTC.getAddressByPath(hdPath) // m/account'/change/address_index
hd.LTC.getAddressByPath(hdPath)
hd.BCH.getAddressByPrivateKey(privateKey)
hd.BTC_TEST.getAddressByPublicKey(privateKey)
hd.BTC_TEST.getAddressByPublicKey(publicKey)
```
## Example
### Initialization
Expand Down
12 changes: 6 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ let hd = hdAddress.HD(seed,hdAddress.keyType.seed)
let hd = hdAddress.HD(base58,hdAddress.keyType.base58)

// 获得 HD钱包的对应的币种地址信息
hd.BTC.getCoinKeyPair(index, account, change)
hd.ETH.getCoinAddressKeyPair(index, account, change)
hd.TRX.getAddress(index, account, change)
hd.LTC.getAddressByPath(hdPath) // m/account'/change/address_index
hd.BCH.getAddressByPrivateKey(privateKey)
hd.BTC_TEST.getAddressByPublicKey(privateKey)
hd.BTC.getCoinKeyPair(index, account, change) //获取私钥信息
hd.ETH.getCoinAddressKeyPair(index, account, change) //获取私钥信息,地址信息
hd.TRX.getAddress(index, account, change) // 索引生成地址
hd.LTC.getAddressByPath(hdPath) // 路径生成地址
hd.BCH.getAddressByPrivateKey(privateKey) // 私钥生成地址
hd.BTC_TEST.getAddressByPublicKey(publicKey) // 公钥生成地址
```
## Example
### 初始化
Expand Down
2 changes: 1 addition & 1 deletion lib/base/address.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = class Address {
console.log(this.coin, "Please implement getAddressByPrivateKey method")
}

getAddressByPublicKey(privateKey) {
getAddressByPublicKey(publicKey) {
console.log(this.coin, "Please implement getAddressByPublicKey method")
}

Expand Down

0 comments on commit 99ea30b

Please sign in to comment.