@caravan/psbt 1.9.2 → 1.9.4
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/README.md +0 -16
- package/dist/index.d.ts +9 -3
- package/dist/index.js +69586 -40151
- package/dist/index.mjs +69553 -40118
- package/package.json +12 -19
package/README.md
CHANGED
|
@@ -253,22 +253,6 @@ Then copy the resulting built code (ends up in the lib directory) into the vendo
|
|
|
253
253
|
we just use the asmjs build to avoid wasm complications in
|
|
254
254
|
the build system.
|
|
255
255
|
|
|
256
|
-
### Experimental VM Modules
|
|
257
|
-
This is related to the tiny-secp256k1 library which has difficulties importing in different environments.
|
|
258
|
-
|
|
259
|
-
Note that the jest configs and the special prefix in the npm test scripts were needed
|
|
260
|
-
to let jest understand the esmodule imports from the tiny-secp256k1 library.
|
|
261
|
-
|
|
262
|
-
The npm script prefix in particular may result in a console warning when running tests:
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
ExperimentalWarning: VM Modules is an experimental feature and might change at any time
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
This can be safely ignored. See the [documentation in jest](https://jestjs.io/docs/ecmascript-modules)
|
|
269
|
-
for more information on running with `--experimental-vm-modules`.
|
|
270
|
-
|
|
271
|
-
|
|
272
256
|
### What's with the `bitcoinjs-lib-v6` dependency?
|
|
273
257
|
|
|
274
258
|
npm workspaces and maybe vite have issues with nested dependencies with
|
package/dist/index.d.ts
CHANGED
|
@@ -99,9 +99,7 @@ declare class PsbtV2 extends PsbtV2Maps {
|
|
|
99
99
|
get PSBT_GLOBAL_FALLBACK_LOCKTIME(): number | null;
|
|
100
100
|
set PSBT_GLOBAL_FALLBACK_LOCKTIME(locktime: number | null);
|
|
101
101
|
get PSBT_GLOBAL_INPUT_COUNT(): number;
|
|
102
|
-
set PSBT_GLOBAL_INPUT_COUNT(count: number);
|
|
103
102
|
get PSBT_GLOBAL_OUTPUT_COUNT(): number;
|
|
104
|
-
set PSBT_GLOBAL_OUTPUT_COUNT(count: number);
|
|
105
103
|
get PSBT_GLOBAL_TX_MODIFIABLE(): PsbtGlobalTxModifiableBits[];
|
|
106
104
|
set PSBT_GLOBAL_TX_MODIFIABLE(modifiable: PsbtGlobalTxModifiableBits[]);
|
|
107
105
|
get PSBT_GLOBAL_VERSION(): number;
|
|
@@ -402,6 +400,14 @@ declare class PsbtV2 extends PsbtV2Maps {
|
|
|
402
400
|
* this PSBTv2. Accepts optional desired format as a string (default base64).
|
|
403
401
|
*/
|
|
404
402
|
toV0(format?: "base64" | "hex"): string;
|
|
403
|
+
/**
|
|
404
|
+
* Updates the PSBT_GLOBAL_INPUT_COUNT field in the global map.
|
|
405
|
+
*/
|
|
406
|
+
private updateGlobalInputCount;
|
|
407
|
+
/**
|
|
408
|
+
* Updates the PSBT_GLOBAL_OUTPUT_COUNT field in the global map.
|
|
409
|
+
*/
|
|
410
|
+
private updateGlobalOutputCount;
|
|
405
411
|
}
|
|
406
412
|
|
|
407
413
|
interface PsbtInput {
|
|
@@ -529,4 +535,4 @@ declare const PSBT_MAGIC_HEX = "70736274ff";
|
|
|
529
535
|
declare const PSBT_MAGIC_B64 = "cHNidP8";
|
|
530
536
|
declare const PSBT_MAGIC_BYTES: Buffer;
|
|
531
537
|
|
|
532
|
-
export { LegacyInput, LegacyMultisig, LegacyOutput, PSBT_MAGIC_B64, PSBT_MAGIC_BYTES, PSBT_MAGIC_HEX, PsbtInput, PsbtOutput, PsbtV2, addGlobalXpubs, autoLoadPSBT, convertLegacyInput, convertLegacyOutput, getPsbtVersionNumber, getUnsignedMultisigPsbtV0, translatePSBT, validateMultisigPsbtSignature };
|
|
538
|
+
export { type LegacyInput, type LegacyMultisig, type LegacyOutput, PSBT_MAGIC_B64, PSBT_MAGIC_BYTES, PSBT_MAGIC_HEX, type PsbtInput, type PsbtOutput, PsbtV2, addGlobalXpubs, autoLoadPSBT, convertLegacyInput, convertLegacyOutput, getPsbtVersionNumber, getUnsignedMultisigPsbtV0, translatePSBT, validateMultisigPsbtSignature };
|