@bitgo/wasm-utxo 4.31.0 → 4.32.0

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.
@@ -465,6 +465,70 @@ export class BitGoPsbt {
465
465
  wasm.__wbindgen_add_to_stack_pointer(16);
466
466
  }
467
467
  }
468
+ /**
469
+ * Constructor: add the shielded Ironwood output as an orchard PCZT stored in the PSBT.
470
+ *
471
+ * * `recipient` - raw Orchard/Ironwood address ([`ORCHARD_ADDRESS_SIZE`] bytes)
472
+ * * `amount` - note value in zatoshi
473
+ * * `ovk` - optional outgoing viewing key ([`OVK_SIZE`] bytes; `None` for a keyless build)
474
+ * * `anchor` - Ironwood note-commitment-tree root ([`ANCHOR_SIZE`] bytes)
475
+ * * `memo` - ZIP-302 memo field ([`MEMO_SIZE`] bytes)
476
+ *
477
+ * [`ORCHARD_ADDRESS_SIZE`]: crate::zcash::ironwood_build::ORCHARD_ADDRESS_SIZE
478
+ * [`OVK_SIZE`]: crate::zcash::ironwood_build::OVK_SIZE
479
+ * [`ANCHOR_SIZE`]: crate::zcash::ironwood_build::ANCHOR_SIZE
480
+ * [`MEMO_SIZE`]: crate::zcash::ironwood_build::MEMO_SIZE
481
+ * @param {Uint8Array} recipient
482
+ * @param {bigint} amount
483
+ * @param {Uint8Array | null | undefined} ovk
484
+ * @param {Uint8Array} anchor
485
+ * @param {Uint8Array} memo
486
+ */
487
+ add_ironwood_output(recipient, amount, ovk, anchor, memo) {
488
+ try {
489
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
490
+ const ptr0 = passArray8ToWasm0(recipient, wasm.__wbindgen_export);
491
+ const len0 = WASM_VECTOR_LEN;
492
+ var ptr1 = isLikeNone(ovk) ? 0 : passArray8ToWasm0(ovk, wasm.__wbindgen_export);
493
+ var len1 = WASM_VECTOR_LEN;
494
+ const ptr2 = passArray8ToWasm0(anchor, wasm.__wbindgen_export);
495
+ const len2 = WASM_VECTOR_LEN;
496
+ const ptr3 = passArray8ToWasm0(memo, wasm.__wbindgen_export);
497
+ const len3 = WASM_VECTOR_LEN;
498
+ wasm.bitgopsbt_add_ironwood_output(retptr, this.__wbg_ptr, ptr0, len0, amount, ptr1, len1, ptr2, len2, ptr3, len3);
499
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
500
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
501
+ if (r1) {
502
+ throw takeObject(r0);
503
+ }
504
+ } finally {
505
+ wasm.__wbindgen_add_to_stack_pointer(16);
506
+ }
507
+ }
508
+ /**
509
+ * Ingest a transparent-input signature (`sig`: DER ECDSA with the trailing SIGHASH_ALL byte)
510
+ * after verifying it against `ironwood_v6_transparent_sighash(index)`.
511
+ * @param {number} index
512
+ * @param {Uint8Array} pubkey
513
+ * @param {Uint8Array} sig
514
+ */
515
+ add_ironwood_v6_signature(index, pubkey, sig) {
516
+ try {
517
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
518
+ const ptr0 = passArray8ToWasm0(pubkey, wasm.__wbindgen_export);
519
+ const len0 = WASM_VECTOR_LEN;
520
+ const ptr1 = passArray8ToWasm0(sig, wasm.__wbindgen_export);
521
+ const len1 = WASM_VECTOR_LEN;
522
+ wasm.bitgopsbt_add_ironwood_v6_signature(retptr, this.__wbg_ptr, index, ptr0, len0, ptr1, len1);
523
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
524
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
525
+ if (r1) {
526
+ throw takeObject(r0);
527
+ }
528
+ } finally {
529
+ wasm.__wbindgen_add_to_stack_pointer(16);
530
+ }
531
+ }
468
532
  /**
469
533
  * @param {Uint8Array} script
470
534
  * @param {bigint} value
@@ -794,6 +858,38 @@ export class BitGoPsbt {
794
858
  wasm.__wbindgen_add_to_stack_pointer(16);
795
859
  }
796
860
  }
861
+ /**
862
+ * Transaction Extractor: given the external prover's `proof` bytes, finalize the transparent
863
+ * inputs, apply the shielded binding signature, and return the broadcast-ready v6 transaction
864
+ * bytes. Requires the transparent inputs to be signed (via `add_ironwood_v6_signature`).
865
+ *
866
+ * Terminal: on success the stored PCZT is dropped, so a second call — or any other Ironwood
867
+ * operation, including after a `serialize`/`from_bytes` round-trip — fails rather than silently
868
+ * re-running against already-extracted state. Build a fresh PSBT instead. On failure nothing is
869
+ * dropped, so a call that errors (bad proof, unsigned input) leaves the PSBT retryable.
870
+ * @param {Uint8Array} proof
871
+ * @returns {Uint8Array}
872
+ */
873
+ combine_ironwood_proof(proof) {
874
+ try {
875
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
876
+ const ptr0 = passArray8ToWasm0(proof, wasm.__wbindgen_export);
877
+ const len0 = WASM_VECTOR_LEN;
878
+ wasm.bitgopsbt_combine_ironwood_proof(retptr, this.__wbg_ptr, ptr0, len0);
879
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
880
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
881
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
882
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
883
+ if (r3) {
884
+ throw takeObject(r2);
885
+ }
886
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
887
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
888
+ return v2;
889
+ } finally {
890
+ wasm.__wbindgen_add_to_stack_pointer(16);
891
+ }
892
+ }
797
893
  /**
798
894
  * Combine/merge data from another PSBT into this one
799
895
  *
@@ -950,6 +1046,69 @@ export class BitGoPsbt {
950
1046
  wasm.__wbindgen_add_to_stack_pointer(16);
951
1047
  }
952
1048
  }
1049
+ /**
1050
+ * Create an empty Zcash **v6 (Ironwood)** shielding PSBT with an explicit consensus branch id.
1051
+ *
1052
+ * The version group id is fixed by the v6 format, but the consensus branch id tracks the active
1053
+ * network upgrade and stays caller-supplied — the v6 analogue of `create_empty_zcash`. Prefer
1054
+ * `create_empty_zcash_v6_at_height`, which derives it from a block height and rejects heights
1055
+ * before NU6.3 activation; this is the escape hatch for callers that already know the value.
1056
+ * @param {string} network
1057
+ * @param {WasmRootWalletKeys} wallet_keys
1058
+ * @param {number} consensus_branch_id
1059
+ * @param {number | null} [lock_time]
1060
+ * @param {number | null} [expiry_height]
1061
+ * @returns {BitGoPsbt}
1062
+ */
1063
+ static create_empty_zcash_v6(network, wallet_keys, consensus_branch_id, lock_time, expiry_height) {
1064
+ try {
1065
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1066
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1067
+ const len0 = WASM_VECTOR_LEN;
1068
+ _assertClass(wallet_keys, WasmRootWalletKeys);
1069
+ wasm.bitgopsbt_create_empty_zcash_v6(retptr, ptr0, len0, wallet_keys.__wbg_ptr, consensus_branch_id, isLikeNone(lock_time) ? 0x100000001 : (lock_time) >>> 0, isLikeNone(expiry_height) ? 0x100000001 : (expiry_height) >>> 0);
1070
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1071
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1072
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1073
+ if (r2) {
1074
+ throw takeObject(r1);
1075
+ }
1076
+ return BitGoPsbt.__wrap(r0);
1077
+ } finally {
1078
+ wasm.__wbindgen_add_to_stack_pointer(16);
1079
+ }
1080
+ }
1081
+ /**
1082
+ * Create an empty Zcash **v6 (Ironwood)** shielding PSBT, with the consensus branch id
1083
+ * resolved from `block_height`. Transparent inputs/outputs are added with the usual
1084
+ * `add_wallet_input` / `add_wallet_output`; the shielded output and the v6 sign/combine
1085
+ * steps use the dedicated `add_ironwood_output` / `ironwood_v6_*` / `combine_ironwood_proof`
1086
+ * methods.
1087
+ * @param {string} network
1088
+ * @param {WasmRootWalletKeys} wallet_keys
1089
+ * @param {number} block_height
1090
+ * @param {number | null} [lock_time]
1091
+ * @param {number | null} [expiry_height]
1092
+ * @returns {BitGoPsbt}
1093
+ */
1094
+ static create_empty_zcash_v6_at_height(network, wallet_keys, block_height, lock_time, expiry_height) {
1095
+ try {
1096
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1097
+ const ptr0 = passStringToWasm0(network, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1098
+ const len0 = WASM_VECTOR_LEN;
1099
+ _assertClass(wallet_keys, WasmRootWalletKeys);
1100
+ wasm.bitgopsbt_create_empty_zcash_v6_at_height(retptr, ptr0, len0, wallet_keys.__wbg_ptr, block_height, isLikeNone(lock_time) ? 0x100000001 : (lock_time) >>> 0, isLikeNone(expiry_height) ? 0x100000001 : (expiry_height) >>> 0);
1101
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1102
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1103
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1104
+ if (r2) {
1105
+ throw takeObject(r1);
1106
+ }
1107
+ return BitGoPsbt.__wrap(r0);
1108
+ } finally {
1109
+ wasm.__wbindgen_add_to_stack_pointer(16);
1110
+ }
1111
+ }
953
1112
  /**
954
1113
  * @param {number} index
955
1114
  * @param {any} key
@@ -1629,6 +1788,59 @@ export class BitGoPsbt {
1629
1788
  const ret = wasm.bitgopsbt_input_count(this.__wbg_ptr);
1630
1789
  return ret >>> 0;
1631
1790
  }
1791
+ /**
1792
+ * The ZIP-244 per-input transparent sighash (32 bytes) that the key controlling transparent
1793
+ * input `index` must sign.
1794
+ * @param {number} index
1795
+ * @returns {Uint8Array}
1796
+ */
1797
+ ironwood_v6_transparent_sighash(index) {
1798
+ try {
1799
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1800
+ wasm.bitgopsbt_ironwood_v6_transparent_sighash(retptr, this.__wbg_ptr, index);
1801
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1802
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1803
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1804
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1805
+ if (r3) {
1806
+ throw takeObject(r2);
1807
+ }
1808
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1809
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
1810
+ return v1;
1811
+ } finally {
1812
+ wasm.__wbindgen_add_to_stack_pointer(16);
1813
+ }
1814
+ }
1815
+ /**
1816
+ * The canonical (display-order) ZIP-244 v6 txid as a lowercase hex string, matching the
1817
+ * `getId()` convention used elsewhere (see [`crate::wasm::zcash::ZcashV6Transaction::get_id`]).
1818
+ * @returns {string}
1819
+ */
1820
+ ironwood_v6_txid() {
1821
+ let deferred2_0;
1822
+ let deferred2_1;
1823
+ try {
1824
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1825
+ wasm.bitgopsbt_ironwood_v6_txid(retptr, this.__wbg_ptr);
1826
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1827
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1828
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1829
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1830
+ var ptr1 = r0;
1831
+ var len1 = r1;
1832
+ if (r3) {
1833
+ ptr1 = 0; len1 = 0;
1834
+ throw takeObject(r2);
1835
+ }
1836
+ deferred2_0 = ptr1;
1837
+ deferred2_1 = len1;
1838
+ return getStringFromWasm0(ptr1, len1);
1839
+ } finally {
1840
+ wasm.__wbindgen_add_to_stack_pointer(16);
1841
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1842
+ }
1843
+ }
1632
1844
  /**
1633
1845
  * Check if an input is a MuSig2 keypath input.
1634
1846
  *
@@ -6702,6 +6914,19 @@ export function zcash_branch_id_for_height(network, height) {
6702
6914
  wasm.__wbindgen_add_to_stack_pointer(16);
6703
6915
  }
6704
6916
  }
6917
+
6918
+ /**
6919
+ * The Zcash v6 (Ironwood / NU6.3) version group id.
6920
+ *
6921
+ * Exported so the TypeScript layer can derive its `IRONWOOD_VERSION_GROUP_ID` from the Rust
6922
+ * constant instead of hard-coding a second copy: the two are used together to tell v6 PSBTs from
6923
+ * v4/Sapling ones, and a silent divergence would route v6 bytes down the v4 path.
6924
+ * @returns {number}
6925
+ */
6926
+ export function zcash_ironwood_version_group_id() {
6927
+ const ret = wasm.zcash_ironwood_version_group_id();
6928
+ return ret >>> 0;
6929
+ }
6705
6930
  export function __wbg_Error_8c4e43fe74559d73(arg0, arg1) {
6706
6931
  const ret = Error(getStringFromWasm0(arg0, arg1));
6707
6932
  return addHeapObject(ret);
Binary file
@@ -2,39 +2,21 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
5
6
  export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
6
- export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
7
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
8
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
9
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
10
- export const isInspectEnabled: () => number;
11
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
12
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
13
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
14
- export const wasmdimensions_empty: () => number;
15
- export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
16
- export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
17
- export const wasmdimensions_from_output_script_length: (a: number) => number;
18
- export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
19
- export const wasmdimensions_from_psbt: (a: number, b: number) => void;
20
- export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
21
- export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
22
- export const wasmdimensions_get_output_vsize: (a: number) => number;
23
- export const wasmdimensions_get_output_weight: (a: number) => number;
24
- export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
25
- export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
26
- export const wasmdimensions_has_segwit: (a: number) => number;
27
- export const wasmdimensions_plus: (a: number, b: number) => number;
28
- export const wasmdimensions_times: (a: number, b: number) => number;
29
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
30
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
31
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
32
7
  export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
8
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
33
9
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
34
10
  export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
35
11
  export const __wbg_wrappsbt_free: (a: number, b: number) => void;
36
12
  export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
37
13
  export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
14
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
15
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
16
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
17
+ export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
18
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
19
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
38
20
  export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
39
21
  export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
40
22
  export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
@@ -45,6 +27,16 @@ export const wasmdashtransaction_lock_time: (a: number) => number;
45
27
  export const wasmdashtransaction_output_count: (a: number) => number;
46
28
  export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
47
29
  export const wasmdashtransaction_version: (a: number) => number;
30
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
31
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
32
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
33
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
34
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
35
+ export const wasmecpair_private_key: (a: number) => number;
36
+ export const wasmecpair_public_key: (a: number) => number;
37
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
38
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
39
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
48
40
  export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
49
41
  export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
50
42
  export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
@@ -107,6 +99,7 @@ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: n
107
99
  export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
108
100
  export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
109
101
  export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
102
+ export const zcash_ironwood_version_group_id: () => number;
110
103
  export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
111
104
  export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
112
105
  export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -132,8 +125,12 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
132
125
  export const wasmzcashtransaction_version: (a: number) => number;
133
126
  export const wrappsbt_lock_time: (a: number) => number;
134
127
  export const wrappsbt_version: (a: number) => number;
128
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
135
129
  export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
136
130
  export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
131
+ export const isInspectEnabled: () => number;
132
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
133
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
137
134
  export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
138
135
  export const wrapdescriptor_descType: (a: number, b: number) => void;
139
136
  export const wrapdescriptor_encode: (a: number, b: number) => void;
@@ -154,13 +151,14 @@ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d:
154
151
  export const wrapminiscript_node: (a: number, b: number) => void;
155
152
  export const wrapminiscript_toAsmString: (a: number, b: number) => void;
156
153
  export const wrapminiscript_toString: (a: number, b: number) => void;
154
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
155
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
157
156
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
158
157
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
159
158
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
160
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
161
159
  export const __wbg_messagenamespace_free: (a: number, b: number) => void;
162
160
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
163
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
161
+ export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
164
162
  export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
165
163
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
166
164
  export const bip322namespace_add_bip322_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
@@ -171,6 +169,8 @@ export const bip322namespace_verify_bip322_tx_input: (a: number, b: number, c: n
171
169
  export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
172
170
  export const bitgopsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => void;
173
171
  export const bitgopsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number, k: number, l: number) => void;
172
+ export const bitgopsbt_add_ironwood_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number, h: number, i: number, j: number, k: number) => void;
173
+ export const bitgopsbt_add_ironwood_v6_signature: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
174
174
  export const bitgopsbt_add_output: (a: number, b: number, c: number, d: number, e: bigint) => void;
175
175
  export const bitgopsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
176
176
  export const bitgopsbt_add_output_with_address: (a: number, b: number, c: number, d: number, e: bigint) => void;
@@ -183,11 +183,14 @@ export const bitgopsbt_add_wallet_input_at_index: (a: number, b: number, c: numb
183
183
  export const bitgopsbt_add_wallet_output: (a: number, b: number, c: number, d: number, e: bigint, f: number) => void;
184
184
  export const bitgopsbt_add_wallet_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number) => void;
185
185
  export const bitgopsbt_combine_inputs: (a: number, b: number, c: number, d: number) => void;
186
+ export const bitgopsbt_combine_ironwood_proof: (a: number, b: number, c: number, d: number) => void;
186
187
  export const bitgopsbt_combine_musig2_nonces: (a: number, b: number, c: number) => void;
187
188
  export const bitgopsbt_consensus_branch_id: (a: number) => number;
188
189
  export const bitgopsbt_create_empty: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
189
190
  export const bitgopsbt_create_empty_zcash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
190
191
  export const bitgopsbt_create_empty_zcash_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
192
+ export const bitgopsbt_create_empty_zcash_v6: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
193
+ export const bitgopsbt_create_empty_zcash_v6_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
191
194
  export const bitgopsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
192
195
  export const bitgopsbt_delete_kv: (a: number, b: number, c: number) => void;
193
196
  export const bitgopsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
@@ -216,6 +219,8 @@ export const bitgopsbt_get_outputs: (a: number, b: number) => void;
216
219
  export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
217
220
  export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
218
221
  export const bitgopsbt_input_count: (a: number) => number;
222
+ export const bitgopsbt_ironwood_v6_transparent_sighash: (a: number, b: number, c: number) => void;
223
+ export const bitgopsbt_ironwood_v6_txid: (a: number, b: number) => void;
219
224
  export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
220
225
  export const bitgopsbt_lock_time: (a: number) => number;
221
226
  export const bitgopsbt_network: (a: number, b: number) => void;
@@ -252,8 +257,6 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
252
257
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
253
258
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
254
259
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
255
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
256
- export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
257
260
  export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
258
261
  export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
259
262
  export const wasmbip32_chain_code: (a: number) => number;
@@ -278,16 +281,21 @@ export const wasmbip32_private_key: (a: number) => number;
278
281
  export const wasmbip32_public_key: (a: number) => number;
279
282
  export const wasmbip32_to_base58: (a: number, b: number) => void;
280
283
  export const wasmbip32_to_wif: (a: number, b: number) => void;
281
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
282
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
283
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
284
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
285
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
286
- export const wasmecpair_private_key: (a: number) => number;
287
- export const wasmecpair_public_key: (a: number) => number;
288
- export const wasmecpair_to_wif: (a: number, b: number) => void;
289
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
290
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
284
+ export const wasmdimensions_empty: () => number;
285
+ export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
286
+ export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
287
+ export const wasmdimensions_from_output_script_length: (a: number) => number;
288
+ export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
289
+ export const wasmdimensions_from_psbt: (a: number, b: number) => void;
290
+ export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
291
+ export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
292
+ export const wasmdimensions_get_output_vsize: (a: number) => number;
293
+ export const wasmdimensions_get_output_weight: (a: number) => number;
294
+ export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
295
+ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
296
+ export const wasmdimensions_has_segwit: (a: number) => number;
297
+ export const wasmdimensions_plus: (a: number, b: number) => number;
298
+ export const wasmdimensions_times: (a: number, b: number) => number;
291
299
  export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
292
300
  export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
293
301
  export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
@@ -297,9 +305,9 @@ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number
297
305
  export const wasmrootwalletkeys_user_key: (a: number) => number;
298
306
  export const wasmrootwalletkeys_with_derivation_prefixes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
299
307
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
308
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
300
309
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
301
310
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
302
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
303
311
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
304
312
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
305
313
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitgo/wasm-utxo",
3
3
  "description": "WebAssembly wrapper for rust-bitcoin (beta)",
4
- "version": "4.31.0",
4
+ "version": "4.32.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",