utxo-lib 1.0.8 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. package/README.md +19 -16
  2. package/dist/src/address.d.ts.map +1 -1
  3. package/dist/src/address.js +11 -1
  4. package/dist/src/addressFormat.d.ts +1 -1
  5. package/dist/src/addressFormat.d.ts.map +1 -1
  6. package/dist/src/addressFormat.js +1 -1
  7. package/dist/src/base_crypto.d.ts +14 -0
  8. package/dist/src/base_crypto.d.ts.map +1 -0
  9. package/dist/src/base_crypto.js +215 -0
  10. package/dist/src/bitgo/Musig2.d.ts +115 -17
  11. package/dist/src/bitgo/Musig2.d.ts.map +1 -1
  12. package/dist/src/bitgo/Musig2.js +283 -101
  13. package/dist/src/bitgo/PsbtUtil.d.ts +59 -0
  14. package/dist/src/bitgo/PsbtUtil.d.ts.map +1 -0
  15. package/dist/src/bitgo/PsbtUtil.js +91 -0
  16. package/dist/src/bitgo/UtxoPsbt.d.ts +180 -47
  17. package/dist/src/bitgo/UtxoPsbt.d.ts.map +1 -1
  18. package/dist/src/bitgo/UtxoPsbt.js +657 -121
  19. package/dist/src/bitgo/UtxoTransaction.js +2 -2
  20. package/dist/src/bitgo/bitcoincash/address.js +2 -2
  21. package/dist/src/bitgo/index.d.ts +11 -0
  22. package/dist/src/bitgo/index.d.ts.map +1 -1
  23. package/dist/src/bitgo/index.js +6 -2
  24. package/dist/src/bitgo/legacysafe/index.d.ts +15 -0
  25. package/dist/src/bitgo/legacysafe/index.d.ts.map +1 -0
  26. package/dist/src/bitgo/legacysafe/index.js +61 -0
  27. package/dist/src/bitgo/litecoin/LitecoinPsbt.d.ts +10 -0
  28. package/dist/src/bitgo/litecoin/LitecoinPsbt.d.ts.map +1 -0
  29. package/dist/src/bitgo/litecoin/LitecoinPsbt.js +17 -0
  30. package/dist/src/bitgo/litecoin/LitecoinTransaction.d.ts +16 -0
  31. package/dist/src/bitgo/litecoin/LitecoinTransaction.d.ts.map +1 -0
  32. package/dist/src/bitgo/litecoin/LitecoinTransaction.js +46 -0
  33. package/dist/src/bitgo/litecoin/LitecoinTransactionBuilder.d.ts +10 -0
  34. package/dist/src/bitgo/litecoin/LitecoinTransactionBuilder.d.ts.map +1 -0
  35. package/dist/src/bitgo/litecoin/LitecoinTransactionBuilder.js +15 -0
  36. package/dist/src/bitgo/litecoin/index.d.ts +4 -0
  37. package/dist/src/bitgo/litecoin/index.d.ts.map +1 -0
  38. package/dist/src/bitgo/litecoin/index.js +16 -0
  39. package/dist/src/bitgo/outputScripts.d.ts +3 -1
  40. package/dist/src/bitgo/outputScripts.d.ts.map +1 -1
  41. package/dist/src/bitgo/outputScripts.js +20 -12
  42. package/dist/src/bitgo/parseInput.d.ts +49 -20
  43. package/dist/src/bitgo/parseInput.d.ts.map +1 -1
  44. package/dist/src/bitgo/parseInput.js +110 -26
  45. package/dist/src/bitgo/psbt/fromHalfSigned.d.ts.map +1 -1
  46. package/dist/src/bitgo/psbt/fromHalfSigned.js +9 -6
  47. package/dist/src/bitgo/psbt/scriptTypes.js +3 -3
  48. package/dist/src/bitgo/signature.d.ts +3 -3
  49. package/dist/src/bitgo/signature.d.ts.map +1 -1
  50. package/dist/src/bitgo/signature.js +48 -16
  51. package/dist/src/bitgo/transaction.d.ts +18 -3
  52. package/dist/src/bitgo/transaction.d.ts.map +1 -1
  53. package/dist/src/bitgo/transaction.js +28 -15
  54. package/dist/src/bitgo/types.d.ts +2 -0
  55. package/dist/src/bitgo/types.d.ts.map +1 -1
  56. package/dist/src/bitgo/types.js +1 -1
  57. package/dist/src/bitgo/wallet/Psbt.d.ts +104 -12
  58. package/dist/src/bitgo/wallet/Psbt.d.ts.map +1 -1
  59. package/dist/src/bitgo/wallet/Psbt.js +285 -70
  60. package/dist/src/bitgo/wallet/Unspent.d.ts +28 -0
  61. package/dist/src/bitgo/wallet/Unspent.d.ts.map +1 -1
  62. package/dist/src/bitgo/wallet/Unspent.js +172 -68
  63. package/dist/src/bitgo/wallet/WalletOutput.d.ts +17 -1
  64. package/dist/src/bitgo/wallet/WalletOutput.d.ts.map +1 -1
  65. package/dist/src/bitgo/wallet/WalletOutput.js +64 -23
  66. package/dist/src/bitgo/wallet/chains.d.ts +2 -2
  67. package/dist/src/bitgo/wallet/chains.d.ts.map +1 -1
  68. package/dist/src/bitgo/wallet/chains.js +1 -1
  69. package/dist/src/bitgo/zcash/ZcashPsbt.d.ts +0 -1
  70. package/dist/src/bitgo/zcash/ZcashPsbt.d.ts.map +1 -1
  71. package/dist/src/bitgo/zcash/ZcashPsbt.js +7 -16
  72. package/dist/src/bitgo/zcash/ZcashTransaction.js +2 -2
  73. package/dist/src/musig.d.ts +390 -0
  74. package/dist/src/musig.d.ts.map +1 -0
  75. package/dist/src/musig.js +447 -0
  76. package/dist/src/networks.d.ts +1 -2
  77. package/dist/src/networks.d.ts.map +1 -1
  78. package/dist/src/networks.js +22 -29
  79. package/dist/src/noble_ecc.d.ts +1 -1
  80. package/dist/src/noble_ecc.d.ts.map +1 -1
  81. package/dist/src/noble_ecc.js +11 -7
  82. package/dist/src/payments/p2tr.d.ts.map +1 -1
  83. package/dist/src/payments/p2tr.js +21 -19
  84. package/dist/src/payments/p2tr_ns.js +2 -3
  85. package/dist/src/taproot.d.ts +16 -0
  86. package/dist/src/taproot.d.ts.map +1 -1
  87. package/dist/src/taproot.js +45 -4
  88. package/dist/src/testutil/index.d.ts +2 -0
  89. package/dist/src/testutil/index.d.ts.map +1 -1
  90. package/dist/src/testutil/index.js +3 -1
  91. package/dist/src/testutil/keys.d.ts +3 -0
  92. package/dist/src/testutil/keys.d.ts.map +1 -1
  93. package/dist/src/testutil/keys.js +17 -2
  94. package/dist/src/testutil/mock.d.ts +1 -1
  95. package/dist/src/testutil/mock.d.ts.map +1 -1
  96. package/dist/src/testutil/mock.js +12 -4
  97. package/dist/src/testutil/psbt.d.ts +89 -0
  98. package/dist/src/testutil/psbt.d.ts.map +1 -0
  99. package/dist/src/testutil/psbt.js +150 -0
  100. package/dist/src/testutil/transaction.d.ts +70 -0
  101. package/dist/src/testutil/transaction.d.ts.map +1 -0
  102. package/dist/src/testutil/transaction.js +107 -0
  103. package/dist/src/transaction_builder.js +2 -2
  104. package/package.json +6 -7
@@ -35,8 +35,6 @@ const coins = {
35
35
  ZEC: 'zec',
36
36
  DASH: 'dash',
37
37
  DOGE: 'doge',
38
- // #9286F8 PECUNIA CHANGES
39
- BBC: 'bbc',
40
38
  };
41
39
  function getDefaultBip32Mainnet() {
42
40
  return {
@@ -210,7 +208,7 @@ exports.networks = {
210
208
  wif: 0xef,
211
209
  coin: coins.BCHA,
212
210
  cashAddr: {
213
- prefix: 'ecashtest',
211
+ prefix: 'ectest',
214
212
  pubKeyHash: 0x00,
215
213
  scriptHash: 0x08,
216
214
  },
@@ -253,18 +251,6 @@ exports.networks = {
253
251
  wif: 0xef,
254
252
  coin: coins.ZEC,
255
253
  },
256
- // #9286F8 PECUNIA CHANGES
257
- bbc: {
258
- messagePrefix: '\x19DarkCoin Signed Message:\n',
259
- bip32: {
260
- public: 0x0488ade3,
261
- private: 0x0488b21e,
262
- },
263
- pubKeyHash: 0x19,
264
- scriptHash: 0x66,
265
- wif: 0xcd,
266
- coin: coins.BBC,
267
- },
268
254
  };
269
255
  /**
270
256
  * @returns {Network[]} all known networks as array
@@ -287,29 +273,36 @@ exports.getNetworkName = getNetworkName;
287
273
  * @returns {Object} the mainnet corresponding to a testnet
288
274
  */
289
275
  function getMainnet(network) {
290
- switch (network.forkChain) {
291
- case 'bitcoin':
276
+ switch (network) {
277
+ case exports.networks.bitcoin:
278
+ case exports.networks.testnet:
292
279
  return exports.networks.bitcoin;
293
- case 'bitcoincash':
280
+ case exports.networks.bitcoincash:
281
+ case exports.networks.bitcoincashTestnet:
294
282
  return exports.networks.bitcoincash;
295
- case 'bitcoingold':
283
+ case exports.networks.bitcoingold:
284
+ case exports.networks.bitcoingoldTestnet:
296
285
  return exports.networks.bitcoingold;
297
- case 'bitcoinsv':
286
+ case exports.networks.bitcoinsv:
287
+ case exports.networks.bitcoinsvTestnet:
298
288
  return exports.networks.bitcoinsv;
299
- case 'dash':
289
+ case exports.networks.dash:
290
+ case exports.networks.dashTest:
300
291
  return exports.networks.dash;
301
- case 'ecash':
292
+ case exports.networks.ecash:
293
+ case exports.networks.ecashTest:
302
294
  return exports.networks.ecash;
303
- case 'litecoin':
295
+ case exports.networks.litecoin:
296
+ case exports.networks.litecoinTest:
304
297
  return exports.networks.litecoin;
305
- case 'zcash':
298
+ case exports.networks.zcash:
299
+ case exports.networks.zcashTest:
306
300
  return exports.networks.zcash;
307
- case 'dogecoin':
301
+ case exports.networks.dogecoin:
302
+ case exports.networks.dogecoinTest:
308
303
  return exports.networks.dogecoin;
309
- // #9286F8 PECUNIA CHANGES
310
- default:
311
- return exports.networks.bitcoin;
312
304
  }
305
+ throw new TypeError(`invalid network`);
313
306
  }
314
307
  exports.getMainnet = getMainnet;
315
308
  /**
@@ -455,4 +448,4 @@ function supportsTaproot(network) {
455
448
  return getMainnet(network) === exports.networks.bitcoin;
456
449
  }
457
450
  exports.supportsTaproot = supportsTaproot;
458
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29ya3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbmV0d29ya3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7RUFlRTs7O0FBRUY7O0dBRUc7QUFDSCxNQUFNLEtBQUssR0FBRztJQUNaOzs7O1NBSUs7SUFDTCxHQUFHLEVBQUUsS0FBSztJQUNWLElBQUksRUFBRSxNQUFNO0lBQ1osR0FBRyxFQUFFLEtBQUs7SUFDVixHQUFHLEVBQUUsS0FBSztJQUNWLEdBQUcsRUFBRSxLQUFLO0lBQ1YsR0FBRyxFQUFFLEtBQUs7SUFDVixHQUFHLEVBQUUsS0FBSztJQUNWLElBQUksRUFBRSxNQUFNO0lBQ1osSUFBSSxFQUFFLE1BQU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1bmtub3duKTogbmV0d29yayBpcyBOZXR3b3JrIHtcbiAgcmV0dXJuIGdldE5ldHdvcmtMaXN0KCkuaW5jbHVkZXMobmV0d29yayBhcyBOZXR3b3JrKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHN1cHBvcnRzU2Vnd2l0KG5ldHdvcms6IE5ldHdvcmspOiBib29sZWFuIHtcbiAgcmV0dXJuIChbbmV0d29ya3MuYml0Y29pbiwgbmV0d29ya3MubGl0ZWNvaW4sIG5ldHdvcmtzLmJpdGNvaW5nb2xkXSBhcyBOZXR3b3JrW10pLmluY2x1ZGVzKGdldE1haW5uZXQobmV0d29yaykpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gc3VwcG9ydHNUYXByb290KG5ldHdvcms6IE5ldHdvcmspOiBib29sZWFuIHtcbiAgcmV0dXJuIGdldE1haW5uZXQobmV0d29yaykgPT09IG5ldHdvcmtzLmJpdGNvaW47XG59XG4iXX0=
@@ -1,6 +1,6 @@
1
1
  import { ECPairAPI, ECPairInterface } from 'ecpair';
2
2
  import { BIP32API, BIP32Interface } from 'bip32';
3
- import { MuSig } from '@brandonblack/musig/lib';
3
+ import { MuSig } from './musig';
4
4
  declare const ecc: {
5
5
  isPoint: (p: Uint8Array) => boolean;
6
6
  isPrivate: (d: Uint8Array) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"noble_ecc.d.ts","sourceRoot":"","sources":["../../src/noble_ecc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAiB,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAgB,cAAc,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,KAAK,EAAgB,MAAM,yBAAyB,CAAC;AAqC9D,QAAA,MAAM,GAAG;iBACM,UAAU,KAAG,OAAO;mBAClB,UAAU,KAAG,OAAO;sBACjB,UAAU,KAAG,OAAO;4BAEd,UAAU,SAAS,UAAU,KAAG;QAAE,MAAM,E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AS,UAAU,KAAG;QAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;QAAC,WAAW,EAAE,UAAU,CAAA;KAAE,GAAG,IAAI;0BAOnF,UAAU,uCAAyB,UAAU,GAAG,IAAI;uBAGvD,UAAU,uCAAyB,UAAU;uBAI7C,UAAU,SAAS,UAAU,uCAAyB,UAAU,GAAG,IAAI;kBAG5E,UAAU,KAAK,UAAU,uCAAyB,UAAU,GAAG,IAAI;wBAO7D,UAAU,SAAS,UAAU,uCAAyB,UAAU,GAAG,IAAI;oBAG3E,UAAU,SAAS,UAAU,KAAG,UAAU,GAAG,IAAI;uBAS9C,UAAU,KAAG,UAAU;cAEhC,UAAU,KAAK,UAAU,iCAAmB,UAAU;qBAI/C,UAAU,KAAK,UAAU,MAAK,UAAU,KAA4B,UAAU;gBAInF,UAAU,KAAK,UAAU,aAAa,UAAU,mCAAqB,OAAO;uBAIrE,UAAU,KAAK,UAAU,aAAa,UAAU,KAAG,OAAO;CAG9E,CAAC;AAkEF,QAAA,MAAM,MAAM,EAAE,SAA8B,CAAC;AAC7C,QAAA,MAAM,KAAK,EAAE,QAA4B,CAAC;AAC1C,QAAA,MAAM,KAAK,EAAE,KAA4B,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC"}
@@ -7,9 +7,9 @@ const ecpair_1 = require("ecpair");
7
7
  const necc = require("@noble/secp256k1");
8
8
  const bip32_1 = require("bip32");
9
9
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10
- // @ts-ignore base_crypto is exported as a subPath export, ignoring since compiler complains about importing like this
11
- const baseCrypto = require("@brandonblack/musig/lib/base_crypto");
12
- const lib_1 = require("@brandonblack/musig/lib");
10
+ // @ts-ignore base_crypto is exported as a subPath export, ignoring since compiler complains about importing like this // #9286F8 Fixing import in react-native
11
+ const baseCrypto = require("./base_crypto");
12
+ const musig_1 = require("./musig");
13
13
  necc.utils.sha256Sync = (...messages) => {
14
14
  const sha256 = createHash('sha256');
15
15
  for (const message of messages)
@@ -41,7 +41,11 @@ function isPoint(p, xOnly) {
41
41
  }
42
42
  }
43
43
  function toBigInt(b) {
44
- return Buffer.from(b).readBigUint64BE();
44
+ const buff = Buffer.from(b);
45
+ if (buff.length !== 32) {
46
+ throw new Error('Invalid size ${buff.length}');
47
+ }
48
+ return BigInt(`0x${buff.toString('hex')}`);
45
49
  }
46
50
  const ecc = {
47
51
  isPoint: (p) => isPoint(p, false),
@@ -67,7 +71,7 @@ const ecc = {
67
71
  const res = necc.utils.privateAdd(d, tweak);
68
72
  // tiny-secp256k1 returns null rather than allowing a 0 private key to be returned
69
73
  // ECPair.testEcc() requires that behavior.
70
- if (res === null || res === void 0 ? void 0 : res.every((i) => i === 0))
74
+ if (res?.every((i) => i === 0))
71
75
  return null;
72
76
  return res;
73
77
  }),
@@ -163,6 +167,6 @@ const ECPair = ecpair_1.ECPairFactory(ecc);
163
167
  exports.ECPair = ECPair;
164
168
  const bip32 = bip32_1.BIP32Factory(ecc);
165
169
  exports.bip32 = bip32;
166
- const musig = lib_1.MuSigFactory(crypto);
170
+ const musig = musig_1.MuSigFactory(crypto);
167
171
  exports.musig = musig;
168
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9ibGVfZWNjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL25vYmxlX2VjYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwwQ0FBMEM7QUFDMUMsMENBQTBDO0FBQzFDLG1DQUFtRTtBQUNuRSx5Q0FBeUM7QUFDekMsaUNBQStEO0FBQy9ELDZEQUE2RDtBQUM3RCxzSEFBc0g7QUFDdEgsa0VBQWtFO0FBQ2xFLGlEQUE4RDtBQUU5RCxJQUFJLENBQUMsS0FBSyxDQUFD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
1
+ {"version":3,"file":"p2tr.d.ts","sourceRoot":"","sources":["../../../src/payments/p2tr.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,OAAO,EAAE,WAAW,EAAQ,MAAM,eAAe,CAAC;AAiC9E,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CA+U5D"}