@bitgo/wasm-utxo 1.24.0 → 1.25.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.
@@ -67,11 +67,11 @@ export declare function createInscriptionRevealData(key: ECPairArg, contentType:
67
67
  * @param commitOutputScript - The commit output script (P2TR)
68
68
  * @param recipientOutputScript - Where to send the inscription (output script)
69
69
  * @param outputValueSats - Value in satoshis for the inscription output
70
- * @returns The signed PSBT as bytes
70
+ * @returns The signed transaction as bytes (ready to broadcast)
71
71
  *
72
72
  * @example
73
73
  * ```typescript
74
- * const psbtBytes = signRevealTransaction(
74
+ * const txBytes = signRevealTransaction(
75
75
  * privateKey,
76
76
  * revealData.tapLeafScript,
77
77
  * commitTx,
@@ -56,11 +56,11 @@ function createInscriptionRevealData(key, contentType, inscriptionData) {
56
56
  * @param commitOutputScript - The commit output script (P2TR)
57
57
  * @param recipientOutputScript - Where to send the inscription (output script)
58
58
  * @param outputValueSats - Value in satoshis for the inscription output
59
- * @returns The signed PSBT as bytes
59
+ * @returns The signed transaction as bytes (ready to broadcast)
60
60
  *
61
61
  * @example
62
62
  * ```typescript
63
- * const psbtBytes = signRevealTransaction(
63
+ * const txBytes = signRevealTransaction(
64
64
  * privateKey,
65
65
  * revealData.tapLeafScript,
66
66
  * commitTx,
Binary file
@@ -1,6 +1,53 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
5
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
6
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
7
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
8
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
9
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
10
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
11
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
12
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
13
+ 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;
14
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
15
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
16
+ export const wasmrootwalletkeys_backup_key: (a: number) => number;
17
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
18
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
19
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
20
+ 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;
21
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
22
+ export const wasmtransaction_get_vsize: (a: number) => number;
23
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
24
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
25
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
26
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
27
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
28
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
29
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
30
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
31
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
32
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
33
+ export const wrapdescriptor_node: (a: number, b: number) => void;
34
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
35
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
36
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
37
+ export const wrapminiscript_encode: (a: number, b: number) => void;
38
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
39
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
40
+ export const wrapminiscript_node: (a: number, b: number) => void;
41
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
42
+ export const wrapminiscript_toString: (a: number, b: number) => void;
43
+ export const wrappsbt_clone: (a: number) => number;
44
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
45
+ export const wrappsbt_finalize: (a: number, b: number) => void;
46
+ export const wrappsbt_serialize: (a: number, b: number) => void;
47
+ export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
48
+ export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
49
+ export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
50
+ export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
4
51
  export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
52
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
6
53
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
@@ -101,53 +148,6 @@ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: numb
101
148
  export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
102
149
  export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
103
150
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
104
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
105
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
106
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
107
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
108
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
109
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
110
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
111
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
112
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
113
- 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;
114
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
115
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
116
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
117
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
118
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
119
- export const wasmrootwalletkeys_user_key: (a: number) => number;
120
- 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;
121
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
122
- export const wasmtransaction_get_vsize: (a: number) => number;
123
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
124
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
125
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
126
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
127
- export const wrapdescriptor_descType: (a: number, b: number) => void;
128
- export const wrapdescriptor_encode: (a: number, b: number) => void;
129
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
130
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
131
- export const wrapdescriptor_hasWildcard: (a: number) => number;
132
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
133
- export const wrapdescriptor_node: (a: number, b: number) => void;
134
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
135
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
136
- export const wrapdescriptor_toString: (a: number, b: number) => void;
137
- export const wrapminiscript_encode: (a: number, b: number) => void;
138
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
139
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
140
- export const wrapminiscript_node: (a: number, b: number) => void;
141
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
142
- export const wrapminiscript_toString: (a: number, b: number) => void;
143
- export const wrappsbt_clone: (a: number) => number;
144
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
145
- export const wrappsbt_finalize: (a: number, b: number) => void;
146
- export const wrappsbt_serialize: (a: number, b: number) => void;
147
- export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
148
- export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
149
- export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
150
- export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
151
151
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
152
152
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
153
153
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -67,11 +67,11 @@ export declare function createInscriptionRevealData(key: ECPairArg, contentType:
67
67
  * @param commitOutputScript - The commit output script (P2TR)
68
68
  * @param recipientOutputScript - Where to send the inscription (output script)
69
69
  * @param outputValueSats - Value in satoshis for the inscription output
70
- * @returns The signed PSBT as bytes
70
+ * @returns The signed transaction as bytes (ready to broadcast)
71
71
  *
72
72
  * @example
73
73
  * ```typescript
74
- * const psbtBytes = signRevealTransaction(
74
+ * const txBytes = signRevealTransaction(
75
75
  * privateKey,
76
76
  * revealData.tapLeafScript,
77
77
  * commitTx,
@@ -52,11 +52,11 @@ export function createInscriptionRevealData(key, contentType, inscriptionData) {
52
52
  * @param commitOutputScript - The commit output script (P2TR)
53
53
  * @param recipientOutputScript - Where to send the inscription (output script)
54
54
  * @param outputValueSats - Value in satoshis for the inscription output
55
- * @returns The signed PSBT as bytes
55
+ * @returns The signed transaction as bytes (ready to broadcast)
56
56
  *
57
57
  * @example
58
58
  * ```typescript
59
- * const psbtBytes = signRevealTransaction(
59
+ * const txBytes = signRevealTransaction(
60
60
  * privateKey,
61
61
  * revealData.tapLeafScript,
62
62
  * commitTx,
Binary file
@@ -1,6 +1,53 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
5
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
6
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
7
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
8
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
9
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
10
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
11
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
12
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
13
+ 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;
14
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
15
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
16
+ export const wasmrootwalletkeys_backup_key: (a: number) => number;
17
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
18
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
19
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
20
+ 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;
21
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
22
+ export const wasmtransaction_get_vsize: (a: number) => number;
23
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
24
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
25
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
26
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
27
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
28
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
29
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
30
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
31
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
32
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
33
+ export const wrapdescriptor_node: (a: number, b: number) => void;
34
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
35
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
36
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
37
+ export const wrapminiscript_encode: (a: number, b: number) => void;
38
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
39
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
40
+ export const wrapminiscript_node: (a: number, b: number) => void;
41
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
42
+ export const wrapminiscript_toString: (a: number, b: number) => void;
43
+ export const wrappsbt_clone: (a: number) => number;
44
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
45
+ export const wrappsbt_finalize: (a: number, b: number) => void;
46
+ export const wrappsbt_serialize: (a: number, b: number) => void;
47
+ export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
48
+ export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
49
+ export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
50
+ export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
4
51
  export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
52
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
6
53
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
@@ -101,53 +148,6 @@ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: numb
101
148
  export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
102
149
  export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
103
150
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
104
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
105
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
106
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
107
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
108
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
109
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
110
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
111
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
112
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
113
- 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;
114
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
115
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
116
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
117
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
118
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
119
- export const wasmrootwalletkeys_user_key: (a: number) => number;
120
- 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;
121
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
122
- export const wasmtransaction_get_vsize: (a: number) => number;
123
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
124
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
125
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
126
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
127
- export const wrapdescriptor_descType: (a: number, b: number) => void;
128
- export const wrapdescriptor_encode: (a: number, b: number) => void;
129
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
130
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
131
- export const wrapdescriptor_hasWildcard: (a: number) => number;
132
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
133
- export const wrapdescriptor_node: (a: number, b: number) => void;
134
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
135
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
136
- export const wrapdescriptor_toString: (a: number, b: number) => void;
137
- export const wrapminiscript_encode: (a: number, b: number) => void;
138
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
139
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
140
- export const wrapminiscript_node: (a: number, b: number) => void;
141
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
142
- export const wrapminiscript_toString: (a: number, b: number) => void;
143
- export const wrappsbt_clone: (a: number) => number;
144
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
145
- export const wrappsbt_finalize: (a: number, b: number) => void;
146
- export const wrappsbt_serialize: (a: number, b: number) => void;
147
- export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
148
- export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
149
- export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
150
- export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
151
151
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
152
152
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
153
153
  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": "1.24.0",
4
+ "version": "1.25.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",