@caravan/psbt 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -413,6 +413,12 @@ interface LegacyMultisig {
413
413
  path: string;
414
414
  pubkey: Buffer;
415
415
  }[];
416
+ redeem?: {
417
+ output: Buffer;
418
+ };
419
+ witness?: {
420
+ output: Buffer;
421
+ };
416
422
  }
417
423
  interface LegacyInput {
418
424
  txid: string;
package/dist/index.js CHANGED
@@ -93787,8 +93787,8 @@ var convertLegacyOutput = (output) => {
93787
93787
  address: output.address,
93788
93788
  value: new import_bignumber.default(output.amountSats).toNumber(),
93789
93789
  bip32Derivation: output.bip32Derivation || getBip32Derivation(output.multisig),
93790
- witnessScript: output.witnessScript,
93791
- redeemScript: output.redeemScript
93790
+ witnessScript: output.witnessScript || output.multisig?.witness?.output,
93791
+ redeemScript: output.redeemScript || output.multisig?.redeem?.output
93792
93792
  };
93793
93793
  };
93794
93794
  var getWalletConfigFromInput = (input) => {
package/dist/index.mjs CHANGED
@@ -93765,8 +93765,8 @@ var convertLegacyOutput = (output) => {
93765
93765
  address: output.address,
93766
93766
  value: new BigNumber(output.amountSats).toNumber(),
93767
93767
  bip32Derivation: output.bip32Derivation || getBip32Derivation(output.multisig),
93768
- witnessScript: output.witnessScript,
93769
- redeemScript: output.redeemScript
93768
+ witnessScript: output.witnessScript || output.multisig?.witness?.output,
93769
+ redeemScript: output.redeemScript || output.multisig?.redeem?.output
93770
93770
  };
93771
93771
  };
93772
93772
  var getWalletConfigFromInput = (input) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caravan/psbt",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "typescript library for working with PSBTs",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",