We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e094c commit 1a2a550Copy full SHA for 1a2a550
README.md
@@ -152,12 +152,13 @@ toPublicKey(privKeyBytes)
152
```js
153
let keyUtils = {
154
getPrivateKey: async function (txInput, i) {
155
+ let opts = { version: "mainnet" };
156
let pkhBytes = DashKeys.utils.hexToBytes(txInput.pubKeyHash);
- let address = await DashKeys.pkhToAddr(txInput.pubKeyHash);
157
+ let address = await DashKeys.pkhToAddr(pkhBytes, opts);
158
159
let yourKeyData = yourWalletKeyMapGoesHere[address];
160
- let privKeyBytes = DashKeys.wifToPrivKey(yourKeyData.wif);
161
+ let privKeyBytes = await DashKeys.wifToPrivKey(yourKeyData.wif, opts);
162
return privKeyBytes;
163
},
164
0 commit comments