Browse Source

npm bump

master
peter 2 years ago
parent
commit
f9242ba79b
2 changed files with 5 additions and 4 deletions
  1. 4
    3
      index.ts
  2. 1
    1
      package.json

+ 4
- 3
index.ts View File

@@ -130,13 +130,14 @@ function addressFromHDKey(hdkey:string, net: network = "mainnet"){
130 130
     return <string>bitcoin.payments.p2pkh({ pubkey: Buffer.from(hdkey), network: bitcoin.networks[net] }).address
131 131
 }
132 132
 
133
-export const exprt = {
133
+export const hdKey = {
134 134
     addressFromHDKey: addressFromHDKey,
135 135
     deriveAccount: deriveAccount,
136 136
     deriveAddress: deriveAddress,
137 137
     generateAddress: generateAddress,
138 138
     HDKeyFromExtendedKey: HDKeyFromExtendedKey,
139 139
     seedFromMenemonic: seedFromMenemonic,
140
-    randomMenemonic: randomMenemonic
140
+    randomMenemonic: randomMenemonic,
141
+    checkHDKey: checkHDKey
141 142
 }
142
-module.exports = exprt
143
+module.exports = hdKey

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "btc-hdkey",
3
-  "version": "0.0.5",
3
+  "version": "0.0.6",
4 4
   "description": "Hierarchical Deterministic Wallet support for BTC",
5 5
   "main": "index.js",
6 6
   "scripts": {

Loading…
Cancel
Save