@samouraiwallet/bip47
Advanced tools
Comparing version 0.6.0 to 0.6.1
# Changelog | ||
## v0.6.1 | ||
### Features | ||
- fixed documentation | ||
## v0.6.0 | ||
@@ -7,2 +11,3 @@ ### Features | ||
- added ability to derive segwit addresses (P2SH, P2WPKH) | ||
- added more test coverage | ||
@@ -9,0 +14,0 @@ ## v0.5.0 |
{ | ||
"name": "@samouraiwallet/bip47", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=14.0.0" |
@@ -16,7 +16,7 @@ # BIP47 | ||
```js | ||
import bip47 from '@samouraiwallet/bip47'; | ||
import {PaymentCode} from '@samouraiwallet/bip47'; | ||
const b58PCode = 'PM8TJS2JxQ5ztXUpBBRnpTbcUXbUHy2T1abfrb3KkAAtMEGNbey4oumH7Hc578WgQJhPjBxteQ5GHHToTYHE3A1w6p7tU6KSoFmWBVbFGjKPisZDbP97'; | ||
const pcode = bip47.fromBase58(b58PCode); | ||
const pcode = PaymentCode.fromBase58(b58PCode); | ||
const notifAddr = pcode.getNotificationAddress(); | ||
@@ -32,10 +32,10 @@ | ||
```js | ||
import bip47 from '@samouraiwallet/bip47'; | ||
import {PaymentCode, utils} from '@samouraiwallet/bip47'; | ||
const networks = bip47.utils.networks; | ||
const networks = utils.networks; | ||
const b58PCode = 'PM8TJS2JxQ5ztXUpBBRnpTbcUXbUHy2T1abfrb3KkAAtMEGNbey4oumH7Hc578WgQJhPjBxteQ5GHHToTYHE3A1w6p7tU6KSoFmWBVbFGjKPisZDbP97'; | ||
const pcode = bip47.fromBase58(b58PCode, networks.testnet); | ||
const pcode = PaymentCode.fromBase58(b58PCode, networks.testnet); | ||
const notifAddr = pcode.getNotificationAddress(); | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30321