@bitgo-beta/abstract-utxo 1.1.1-beta.28 → 1.1.1-beta.280
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/CHANGELOG.md +202 -0
- package/dist/src/abstractUtxoCoin.d.ts +99 -23
- package/dist/src/abstractUtxoCoin.d.ts.map +1 -1
- package/dist/src/abstractUtxoCoin.js +202 -193
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +4 -3
- package/dist/src/parseOutput.d.ts.map +1 -1
- package/dist/src/parseOutput.js +20 -8
- package/dist/src/recovery/RecoveryProvider.d.ts +6 -5
- package/dist/src/recovery/RecoveryProvider.d.ts.map +1 -1
- package/dist/src/recovery/RecoveryProvider.js +1 -1
- package/dist/src/recovery/backupKeyRecovery.d.ts +6 -3
- package/dist/src/recovery/backupKeyRecovery.d.ts.map +1 -1
- package/dist/src/recovery/backupKeyRecovery.js +6 -3
- package/dist/src/recovery/crossChainRecovery.d.ts +11 -23
- package/dist/src/recovery/crossChainRecovery.d.ts.map +1 -1
- package/dist/src/recovery/crossChainRecovery.js +21 -65
- package/dist/src/sign.d.ts +26 -3
- package/dist/src/sign.d.ts.map +1 -1
- package/dist/src/sign.js +68 -2
- package/dist/src/transaction.d.ts +36 -0
- package/dist/src/transaction.d.ts.map +1 -0
- package/dist/src/transaction.js +205 -0
- package/dist/tsconfig.tsbuildinfo +1731 -903
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,208 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@3.1.2...@bitgo/abstract-utxo@3.2.0) (2023-06-21)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **abstract-utxo:** support express external signer for musig2 inputs ([4401367](https://github.com/BitGo/BitGoJS/commit/44013673d564c976ae7b55788369dc48acbec64f))
|
|
11
|
+
- **utxo-lib:** add extractTransaction to UtxoPsbt ([0c41982](https://github.com/BitGo/BitGoJS/commit/0c41982de5b9397e69b314272c4e0f38bb6f69c3))
|
|
12
|
+
|
|
13
|
+
## [3.1.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@3.1.1...@bitgo/abstract-utxo@3.1.2) (2023-06-14)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
16
|
+
|
|
17
|
+
## [3.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@3.1.0...@bitgo/abstract-utxo@3.1.1) (2023-06-13)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
20
|
+
|
|
21
|
+
# [3.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@3.0.0...@bitgo/abstract-utxo@3.1.0) (2023-06-07)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- **abstract-utxo:** make walletId param optional for signtx ([f5aff50](https://github.com/BitGo/BitGoJS/commit/f5aff5087727fb1842dc7cda64756553ab364c2b))
|
|
26
|
+
|
|
27
|
+
# [3.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.3.0...@bitgo/abstract-utxo@3.0.0) (2023-06-05)
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
- **utxo-lib:** use PsbtInput instead of UtxoPsbt ([1f73539](https://github.com/BitGo/BitGoJS/commit/1f73539409cf69fc55ab8aedb9d8873bb82bc375))
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
- **abstract-utxo:** add psbt support to explain and verify Tx ([4189659](https://github.com/BitGo/BitGoJS/commit/41896593cdc180cb5a60145a8d31fdf55dba6bb2))
|
|
36
|
+
|
|
37
|
+
### BREAKING CHANGES
|
|
38
|
+
|
|
39
|
+
- **utxo-lib:** functions signature is changed
|
|
40
|
+
|
|
41
|
+
# [2.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.2.1...@bitgo/abstract-utxo@2.3.0) (2023-05-25)
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
- **abstract-utxo:** add psbt and musig2 support for sdk-api ([7a23991](https://github.com/BitGo/BitGoJS/commit/7a23991079e5609d43d7483f8137189163943dfc))
|
|
46
|
+
|
|
47
|
+
## [2.2.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.2.0...@bitgo/abstract-utxo@2.2.1) (2023-05-17)
|
|
48
|
+
|
|
49
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
50
|
+
|
|
51
|
+
# [2.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.1.3...@bitgo/abstract-utxo@2.2.0) (2023-05-10)
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- **sdk-coin-btc:** find & use supplementary unspents in case ([fc321ee](https://github.com/BitGo/BitGoJS/commit/fc321ee1fccfae2d6676070fb32d8d4dee531aaf))
|
|
56
|
+
|
|
57
|
+
## [2.1.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.1.2...@bitgo/abstract-utxo@2.1.3) (2023-05-03)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
60
|
+
|
|
61
|
+
## [2.1.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.1.1...@bitgo/abstract-utxo@2.1.2) (2023-04-25)
|
|
62
|
+
|
|
63
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
64
|
+
|
|
65
|
+
## [2.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.1.0...@bitgo/abstract-utxo@2.1.1) (2023-04-20)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
68
|
+
|
|
69
|
+
# [2.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.0.1...@bitgo/abstract-utxo@2.1.0) (2023-04-13)
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
- **sdk-coin-btc:** get rootwalletkeys for inscription transfer ([b160186](https://github.com/BitGo/BitGoJS/commit/b16018643273e20ea6908f51149139def7209932))
|
|
74
|
+
|
|
75
|
+
### Features
|
|
76
|
+
|
|
77
|
+
- **utxo-lib:** create p2tr address using musig2 ([699e829](https://github.com/BitGo/BitGoJS/commit/699e8291f4a205ba0b2071c6369f2c8843b8a945))
|
|
78
|
+
|
|
79
|
+
## [2.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@2.0.0...@bitgo/abstract-utxo@2.0.1) (2023-02-17)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
82
|
+
|
|
83
|
+
# [2.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.5...@bitgo/abstract-utxo@2.0.0) (2023-02-16)
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
- accept apiKey for recoverFromWrongChain ([3f27775](https://github.com/BitGo/BitGoJS/commit/3f2777506326ae08d0e5d211146522af0d15c3f2))
|
|
88
|
+
- convert addr to canonical addr during wrongChainRecovery ([2089596](https://github.com/BitGo/BitGoJS/commit/20895964eeac1eedc9f859f0ce9b607313cc6568))
|
|
89
|
+
- **sdk-core:** mark pub as optional in Keychain interface ([7d6012c](https://github.com/BitGo/BitGoJS/commit/7d6012cf1058e43d96e129dc2b1607b5316dca1c))
|
|
90
|
+
|
|
91
|
+
### Features
|
|
92
|
+
|
|
93
|
+
- update tests for crossChainRecovery ([6cdd3a9](https://github.com/BitGo/BitGoJS/commit/6cdd3a94baa4427412d06e3e151096feea5e26ff))
|
|
94
|
+
- use UtxoApi to facilitate cross chain recoveries ([61151aa](https://github.com/BitGo/BitGoJS/commit/61151aa2634b7fa89f995a85940fd680f87cf854))
|
|
95
|
+
|
|
96
|
+
### BREAKING CHANGES
|
|
97
|
+
|
|
98
|
+
- **sdk-core:** Keychain.pub is now optional
|
|
99
|
+
|
|
100
|
+
# [1.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.5...@bitgo/abstract-utxo@1.12.0) (2023-02-08)
|
|
101
|
+
|
|
102
|
+
### Bug Fixes
|
|
103
|
+
|
|
104
|
+
- accept apiKey for recoverFromWrongChain ([3f27775](https://github.com/BitGo/BitGoJS/commit/3f2777506326ae08d0e5d211146522af0d15c3f2))
|
|
105
|
+
- convert addr to canonical addr during wrongChainRecovery ([2089596](https://github.com/BitGo/BitGoJS/commit/20895964eeac1eedc9f859f0ce9b607313cc6568))
|
|
106
|
+
|
|
107
|
+
### Features
|
|
108
|
+
|
|
109
|
+
- update tests for crossChainRecovery ([6cdd3a9](https://github.com/BitGo/BitGoJS/commit/6cdd3a94baa4427412d06e3e151096feea5e26ff))
|
|
110
|
+
- use UtxoApi to facilitate cross chain recoveries ([61151aa](https://github.com/BitGo/BitGoJS/commit/61151aa2634b7fa89f995a85940fd680f87cf854))
|
|
111
|
+
|
|
112
|
+
# [1.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.5...@bitgo/abstract-utxo@1.11.0) (2023-01-30)
|
|
113
|
+
|
|
114
|
+
### Features
|
|
115
|
+
|
|
116
|
+
- update tests for crossChainRecovery ([6cdd3a9](https://github.com/BitGo/BitGoJS/commit/6cdd3a94baa4427412d06e3e151096feea5e26ff))
|
|
117
|
+
- use UtxoApi to facilitate cross chain recoveries ([61151aa](https://github.com/BitGo/BitGoJS/commit/61151aa2634b7fa89f995a85940fd680f87cf854))
|
|
118
|
+
|
|
119
|
+
## [1.10.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.4...@bitgo/abstract-utxo@1.10.5) (2023-01-25)
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
122
|
+
|
|
123
|
+
## [1.10.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.3...@bitgo/abstract-utxo@1.10.4) (2022-12-23)
|
|
124
|
+
|
|
125
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
126
|
+
|
|
127
|
+
## [1.10.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.2...@bitgo/abstract-utxo@1.10.3) (2022-12-20)
|
|
128
|
+
|
|
129
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
130
|
+
|
|
131
|
+
## [1.10.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.1...@bitgo/abstract-utxo@1.10.2) (2022-12-09)
|
|
132
|
+
|
|
133
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
134
|
+
|
|
135
|
+
## [1.10.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.10.0...@bitgo/abstract-utxo@1.10.1) (2022-12-06)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
138
|
+
|
|
139
|
+
# [1.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.9.0...@bitgo/abstract-utxo@1.10.0) (2022-12-01)
|
|
140
|
+
|
|
141
|
+
### Features
|
|
142
|
+
|
|
143
|
+
- **abstract-utxo:** add valueString to unspents for doge recovery flow ([439f95c](https://github.com/BitGo/BitGoJS/commit/439f95c4e337e33a0812ac28b03e46b52e4a9fde))
|
|
144
|
+
|
|
145
|
+
# [1.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.4.0...@bitgo/abstract-utxo@1.9.0) (2022-11-29)
|
|
146
|
+
|
|
147
|
+
### Bug Fixes
|
|
148
|
+
|
|
149
|
+
- fix unit-test-all errors ([4adab4d](https://github.com/BitGo/BitGoJS/commit/4adab4dd363cdd4c21bd964fd3b6d5581bd63e46))
|
|
150
|
+
- **sdk-coin-doge:** minor change in types ([db18dd9](https://github.com/BitGo/BitGoJS/commit/db18dd9f8a62432c89db76a9dbd81c7b3c586fc2))
|
|
151
|
+
- **utxo-lib:** fixed unchecked cast to Number ([2f1d962](https://github.com/BitGo/BitGoJS/commit/2f1d9628bd9ec51a12d0c8dc0adeb60e94f32b1d))
|
|
152
|
+
|
|
153
|
+
### Features
|
|
154
|
+
|
|
155
|
+
- **abstract-utxo:** allow for override in isValidAddress ([1d02d98](https://github.com/BitGo/BitGoJS/commit/1d02d988401b6abc00336f67687a7b01d682989e))
|
|
156
|
+
- **root:** add support for cross chain recovery for bcha ([f9ab941](https://github.com/BitGo/BitGoJS/commit/f9ab941055eaf79f6623b40e9aac982124f78843))
|
|
157
|
+
- **utxo-lib:** bigintify dogecoin specific functions ([d5830a6](https://github.com/BitGo/BitGoJS/commit/d5830a6d6c17de5cefb138a639b94c0cbb37f5f0))
|
|
158
|
+
- **utxo-lib:** simplify isValidAddress ([cf826fe](https://github.com/BitGo/BitGoJS/commit/cf826fe4d0a32f09888d2218028b24ce33a6aa92))
|
|
159
|
+
|
|
160
|
+
# [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.4.0...@bitgo/abstract-utxo@1.8.0) (2022-11-04)
|
|
161
|
+
|
|
162
|
+
### Bug Fixes
|
|
163
|
+
|
|
164
|
+
- fix unit-test-all errors ([4adab4d](https://github.com/BitGo/BitGoJS/commit/4adab4dd363cdd4c21bd964fd3b6d5581bd63e46))
|
|
165
|
+
- **sdk-coin-doge:** minor change in types ([db18dd9](https://github.com/BitGo/BitGoJS/commit/db18dd9f8a62432c89db76a9dbd81c7b3c586fc2))
|
|
166
|
+
- **utxo-lib:** fixed unchecked cast to Number ([2f1d962](https://github.com/BitGo/BitGoJS/commit/2f1d9628bd9ec51a12d0c8dc0adeb60e94f32b1d))
|
|
167
|
+
|
|
168
|
+
### Features
|
|
169
|
+
|
|
170
|
+
- **utxo-lib:** bigintify dogecoin specific functions ([d5830a6](https://github.com/BitGo/BitGoJS/commit/d5830a6d6c17de5cefb138a639b94c0cbb37f5f0))
|
|
171
|
+
|
|
172
|
+
# [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.4.0...@bitgo/abstract-utxo@1.6.0) (2022-10-27)
|
|
173
|
+
|
|
174
|
+
### Bug Fixes
|
|
175
|
+
|
|
176
|
+
- **sdk-coin-doge:** minor change in types ([db18dd9](https://github.com/BitGo/BitGoJS/commit/db18dd9f8a62432c89db76a9dbd81c7b3c586fc2))
|
|
177
|
+
- **utxo-lib:** fixed unchecked cast to Number ([2f1d962](https://github.com/BitGo/BitGoJS/commit/2f1d9628bd9ec51a12d0c8dc0adeb60e94f32b1d))
|
|
178
|
+
|
|
179
|
+
### Features
|
|
180
|
+
|
|
181
|
+
- **utxo-lib:** bigintify dogecoin specific functions ([d5830a6](https://github.com/BitGo/BitGoJS/commit/d5830a6d6c17de5cefb138a639b94c0cbb37f5f0))
|
|
182
|
+
|
|
183
|
+
# [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.4.0...@bitgo/abstract-utxo@1.5.0) (2022-10-25)
|
|
184
|
+
|
|
185
|
+
### Bug Fixes
|
|
186
|
+
|
|
187
|
+
- **sdk-coin-doge:** minor change in types ([db18dd9](https://github.com/BitGo/BitGoJS/commit/db18dd9f8a62432c89db76a9dbd81c7b3c586fc2))
|
|
188
|
+
- **utxo-lib:** fixed unchecked cast to Number ([2f1d962](https://github.com/BitGo/BitGoJS/commit/2f1d9628bd9ec51a12d0c8dc0adeb60e94f32b1d))
|
|
189
|
+
|
|
190
|
+
### Features
|
|
191
|
+
|
|
192
|
+
- **utxo-lib:** bigintify dogecoin specific functions ([d5830a6](https://github.com/BitGo/BitGoJS/commit/d5830a6d6c17de5cefb138a639b94c0cbb37f5f0))
|
|
193
|
+
|
|
194
|
+
# [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.1.0-rc.6...@bitgo/abstract-utxo@1.4.0) (2022-10-18)
|
|
195
|
+
|
|
196
|
+
### Bug Fixes
|
|
197
|
+
|
|
198
|
+
- **core:** fix bip32/ecpair, API vs Interface ([bec9c1e](https://github.com/BitGo/BitGoJS/commit/bec9c1e6ff0c23108dc27e171abdd3e4d2cfdfb1))
|
|
199
|
+
|
|
200
|
+
### Features
|
|
201
|
+
|
|
202
|
+
- **abstract-utxo:** add support for bigints from new utxo-lib ([77c60dd](https://github.com/BitGo/BitGoJS/commit/77c60ddd4d0ddd1e82a8b1bb041686a9c7f39fae))
|
|
203
|
+
- **abstract-utxo:** backup key recovery service for doge ([612be53](https://github.com/BitGo/BitGoJS/commit/612be533836f33fdecb9584ddc0f5674df31dcb0))
|
|
204
|
+
- **abstract-utxo:** cross chain recovery support for bigint coins (doge) ([ad6bf71](https://github.com/BitGo/BitGoJS/commit/ad6bf71f58a4bae79f3bb014ee947a878f4b89d2))
|
|
205
|
+
- **sdk-core:** added large value support while calling WP ([870621e](https://github.com/BitGo/BitGoJS/commit/870621e2bc93d15ed6f040379353d039eb17e609))
|
|
206
|
+
- **utxo-lib:** export BIP32/ECPair interfaces ([8628507](https://github.com/BitGo/BitGoJS/commit/862850781b2e8b36c71608c5ae71424b9ebe9dee))
|
|
207
|
+
|
|
6
208
|
# [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-utxo@1.1.0-rc.6...@bitgo/abstract-utxo@1.1.0) (2022-07-19)
|
|
7
209
|
|
|
8
210
|
**Note:** Version bump only for package @bitgo/abstract-utxo
|
|
@@ -5,10 +5,34 @@
|
|
|
5
5
|
import * as utxolib from '@bitgo-beta/utxo-lib';
|
|
6
6
|
import { bitgo } from '@bitgo-beta/utxo-lib';
|
|
7
7
|
import { backupKeyRecovery, RecoverParams } from './recovery/backupKeyRecovery';
|
|
8
|
-
import { CrossChainRecoverySigned, CrossChainRecoveryUnsigned } from './recovery';
|
|
9
|
-
import { AddressCoinSpecific, BaseCoin, BitGoBase, ExtraPrebuildParamsOptions, HalfSignedUtxoTransaction, IRequestTracer, ITransactionExplanation as BaseTransactionExplanation,
|
|
8
|
+
import { CrossChainRecoverySigned, CrossChainRecoveryUnsigned, RecoveryProvider } from './recovery';
|
|
9
|
+
import { AddressCoinSpecific, BaseCoin, BitGoBase, ExtraPrebuildParamsOptions, HalfSignedUtxoTransaction, IBaseCoin, IRequestTracer, ITransactionExplanation as BaseTransactionExplanation, Keychain, KeychainsTriplet, ParsedTransaction as BaseParsedTransaction, ParseTransactionOptions as BaseParseTransactionOptions, PrecreateBitGoOptions, PresignTransactionOptions, RequestTracer, SignedTransaction, SignTransactionOptions as BaseSignTransactionOptions, SupplementGenerateWalletOptions, TransactionParams as BaseTransactionParams, TransactionPrebuild as BaseTransactionPrebuild, Triple, VerificationOptions, VerifyAddressOptions as BaseVerifyAddressOptions, VerifyTransactionOptions as BaseVerifyTransactionOptions, Wallet, WalletData } from '@bitgo-beta/sdk-core';
|
|
10
10
|
import { CustomChangeOptions } from './parseOutput';
|
|
11
11
|
import ScriptType2Of3 = utxolib.bitgo.outputScripts.ScriptType2Of3;
|
|
12
|
+
declare type UtxoCustomSigningFunction<TNumber extends number | bigint> = {
|
|
13
|
+
(params: {
|
|
14
|
+
coin: IBaseCoin;
|
|
15
|
+
txPrebuild: TransactionPrebuild<TNumber>;
|
|
16
|
+
pubs?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* signingStep flag becomes applicable when both of the following conditions are met:
|
|
19
|
+
* 1) When the external express signer is activated
|
|
20
|
+
* 2) When the PSBT includes at least one taprootKeyPathSpend input.
|
|
21
|
+
*
|
|
22
|
+
* The signing process of a taprootKeyPathSpend input is a 4-step sequence:
|
|
23
|
+
* i) user nonce generation - signerNonce - this is the first call to external express signer signTransaction
|
|
24
|
+
* ii) bitgo nonce generation - cosignerNonce - this is the first and only call to local signTransaction
|
|
25
|
+
* iii) user signature - signerSignature - this is the second call to external express signer signTransaction
|
|
26
|
+
* iv) bitgo signature - not in signTransaction method’s scope
|
|
27
|
+
*
|
|
28
|
+
* In the absence of this flag, the aforementioned first three sequence is executed in a single signTransaction call.
|
|
29
|
+
*
|
|
30
|
+
* NOTE: We make a strong assumption that the external express signer and its caller uses sticky sessions,
|
|
31
|
+
* since PSBTs are cached in step 1 to be used in step 3 for MuSig2 user secure nonce access.
|
|
32
|
+
*/
|
|
33
|
+
signingStep?: 'signerNonce' | 'signerSignature' | 'cosignerNonce';
|
|
34
|
+
}): Promise<SignedTransaction>;
|
|
35
|
+
};
|
|
12
36
|
declare type Unspent<TNumber extends number | bigint = number> = bitgo.Unspent<TNumber>;
|
|
13
37
|
export interface VerifyAddressOptions extends BaseVerifyAddressOptions {
|
|
14
38
|
chain: number;
|
|
@@ -37,7 +61,8 @@ export interface TransactionInfo<TNumber extends number | bigint = number> {
|
|
|
37
61
|
/** Maps txid to txhex. Required for offline signing. */
|
|
38
62
|
txHexes?: Record<string, string>;
|
|
39
63
|
changeAddresses?: string[];
|
|
40
|
-
unspents
|
|
64
|
+
/** psbt does not require unspents. */
|
|
65
|
+
unspents?: Unspent<TNumber>[];
|
|
41
66
|
}
|
|
42
67
|
export interface ExplainTransactionOptions<TNumber extends number | bigint = number> {
|
|
43
68
|
txHex: string;
|
|
@@ -54,10 +79,21 @@ export interface TransactionParams extends BaseTransactionParams {
|
|
|
54
79
|
walletPassphrase?: string;
|
|
55
80
|
changeAddress?: string;
|
|
56
81
|
}
|
|
82
|
+
export interface AbstractUtxoCoinWalletData extends WalletData {
|
|
83
|
+
customChangeKeySignatures: {
|
|
84
|
+
user: string;
|
|
85
|
+
backup: string;
|
|
86
|
+
bitgo: string;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export declare class AbstractUtxoCoinWallet extends Wallet {
|
|
90
|
+
_wallet: AbstractUtxoCoinWalletData;
|
|
91
|
+
constructor(bitgo: BitGoBase, baseCoin: IBaseCoin, walletData: any);
|
|
92
|
+
}
|
|
57
93
|
export interface ParseTransactionOptions<TNumber extends number | bigint = number> extends BaseParseTransactionOptions {
|
|
58
94
|
txParams: TransactionParams;
|
|
59
95
|
txPrebuild: TransactionPrebuild<TNumber>;
|
|
60
|
-
wallet:
|
|
96
|
+
wallet: AbstractUtxoCoinWallet;
|
|
61
97
|
verification?: VerificationOptions;
|
|
62
98
|
reqId?: IRequestTracer;
|
|
63
99
|
}
|
|
@@ -101,16 +137,20 @@ export interface AddressDetails {
|
|
|
101
137
|
coinSpecific: AddressCoinSpecific;
|
|
102
138
|
addressType?: string;
|
|
103
139
|
}
|
|
104
|
-
|
|
140
|
+
declare type UtxoBaseSignTransactionOptions<TNumber extends number | bigint = number> = BaseSignTransactionOptions & {
|
|
105
141
|
/** Transaction prebuild from bitgo server */
|
|
106
142
|
txPrebuild: {
|
|
143
|
+
/**
|
|
144
|
+
* walletId is required in following 2 scenarios.
|
|
145
|
+
* 1. External signer express mode is used.
|
|
146
|
+
* 2. bitgo MuSig2 nonce is requested
|
|
147
|
+
*/
|
|
148
|
+
walletId?: string;
|
|
107
149
|
txHex: string;
|
|
108
|
-
txInfo
|
|
150
|
+
txInfo?: TransactionInfo<TNumber>;
|
|
109
151
|
};
|
|
110
|
-
/**
|
|
111
|
-
|
|
112
|
-
/** xpubs triple for wallet (user, backup, bitgo) */
|
|
113
|
-
pubs: Triple<string>;
|
|
152
|
+
/** xpubs triple for wallet (user, backup, bitgo). Required only when txPrebuild.txHex is not a PSBT */
|
|
153
|
+
pubs?: Triple<string>;
|
|
114
154
|
/** xpub for cosigner (defaults to bitgo) */
|
|
115
155
|
cosignerPub?: string;
|
|
116
156
|
/**
|
|
@@ -118,7 +158,13 @@ export interface SignTransactionOptions<TNumber extends number | bigint = number
|
|
|
118
158
|
* When false, creates half-signed transaction with placeholder signatures.
|
|
119
159
|
*/
|
|
120
160
|
isLastSignature?: boolean;
|
|
121
|
-
}
|
|
161
|
+
};
|
|
162
|
+
export declare type SignTransactionOptions<TNumber extends number | bigint = number> = UtxoBaseSignTransactionOptions<TNumber> & ({
|
|
163
|
+
prv: string;
|
|
164
|
+
signingStep?: 'signerNonce' | 'signerSignature';
|
|
165
|
+
} | {
|
|
166
|
+
signingStep: 'cosignerNonce';
|
|
167
|
+
});
|
|
122
168
|
export interface MultiSigAddress {
|
|
123
169
|
outputScript: Buffer;
|
|
124
170
|
redeemScript?: Buffer;
|
|
@@ -131,6 +177,7 @@ export interface RecoverFromWrongChainOptions {
|
|
|
131
177
|
wallet: string;
|
|
132
178
|
walletPassphrase?: string;
|
|
133
179
|
xprv?: string;
|
|
180
|
+
apiKey?: string;
|
|
134
181
|
/** @deprecated */
|
|
135
182
|
coin?: AbstractUtxoCoin;
|
|
136
183
|
recoveryCoin?: AbstractUtxoCoin;
|
|
@@ -148,6 +195,13 @@ export interface VerifyUserPublicKeyOptions {
|
|
|
148
195
|
}
|
|
149
196
|
export interface VerifyTransactionOptions<TNumber extends number | bigint = number> extends BaseVerifyTransactionOptions {
|
|
150
197
|
txPrebuild: TransactionPrebuild<TNumber>;
|
|
198
|
+
wallet: AbstractUtxoCoinWallet;
|
|
199
|
+
}
|
|
200
|
+
export interface SignPsbtRequest {
|
|
201
|
+
psbt: string;
|
|
202
|
+
}
|
|
203
|
+
export interface SignPsbtResponse {
|
|
204
|
+
psbt: string;
|
|
151
205
|
}
|
|
152
206
|
export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
153
207
|
altScriptHash?: number;
|
|
@@ -155,6 +209,15 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
155
209
|
readonly amountType: 'number' | 'bigint';
|
|
156
210
|
private readonly _network;
|
|
157
211
|
protected constructor(bitgo: BitGoBase, network: utxolib.Network, amountType?: 'number' | 'bigint');
|
|
212
|
+
/**
|
|
213
|
+
* Key Value: Unsigned tx id => PSBT
|
|
214
|
+
* It is used to cache PSBTs with taproot key path (MuSig2) inputs during external express signer is activated.
|
|
215
|
+
* Reason: MuSig2 signer secure nonce is cached in the UtxoPsbt object. It will be required during the signing step.
|
|
216
|
+
* For more info, check SignTransactionOptions.signingStep
|
|
217
|
+
*
|
|
218
|
+
* TODO BTC-276: This cache may need to be done with LRU like memory safe caching if memory issues comes up.
|
|
219
|
+
*/
|
|
220
|
+
private static readonly PSBT_CACHE;
|
|
158
221
|
get network(): utxolib.Network;
|
|
159
222
|
sweepWithSendMany(): boolean;
|
|
160
223
|
/** @deprecated */
|
|
@@ -168,20 +231,14 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
168
231
|
* @deprecated
|
|
169
232
|
*/
|
|
170
233
|
getCoinLibrary(): typeof utxolib;
|
|
171
|
-
/**
|
|
172
|
-
* Helper to get the version number for an address
|
|
173
|
-
*/
|
|
174
|
-
protected getAddressVersion(address: string): number | undefined;
|
|
175
|
-
/**
|
|
176
|
-
* Helper to get the bech32 prefix for an address
|
|
177
|
-
*/
|
|
178
|
-
protected getAddressPrefix(address: string): string | undefined;
|
|
179
234
|
/**
|
|
180
235
|
* Check if an address is valid
|
|
181
236
|
* @param address
|
|
182
|
-
* @param
|
|
237
|
+
* @param param
|
|
183
238
|
*/
|
|
184
|
-
isValidAddress(address: string,
|
|
239
|
+
isValidAddress(address: string, param?: {
|
|
240
|
+
anyFormat: boolean;
|
|
241
|
+
} | /* legacy parameter */ boolean): boolean;
|
|
185
242
|
/**
|
|
186
243
|
* Return boolean indicating whether input is valid public key for the coin.
|
|
187
244
|
*
|
|
@@ -276,7 +333,7 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
276
333
|
* @throws {InvalidAddressDerivationPropertyError}
|
|
277
334
|
* @throws {UnexpectedAddressError}
|
|
278
335
|
*/
|
|
279
|
-
isWalletAddress(params: VerifyAddressOptions): boolean
|
|
336
|
+
isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
|
|
280
337
|
/**
|
|
281
338
|
* Indicates whether coin supports a block target
|
|
282
339
|
* @returns {boolean}
|
|
@@ -307,12 +364,29 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
307
364
|
* @returns {{chain: number, index: number, coin: number, coinSpecific: {outputScript, redeemScript}}}
|
|
308
365
|
*/
|
|
309
366
|
generateAddress(params: GenerateAddressOptions): AddressDetails;
|
|
367
|
+
/**
|
|
368
|
+
* @returns input psbt added with deterministic MuSig2 nonce for bitgo key for each MuSig2 inputs.
|
|
369
|
+
* @param psbtHex all MuSig2 inputs should contain user MuSig2 nonce
|
|
370
|
+
* @param walletId
|
|
371
|
+
*/
|
|
372
|
+
signPsbt(psbtHex: string, walletId: string): Promise<SignPsbtResponse>;
|
|
310
373
|
/**
|
|
311
374
|
* Assemble keychain and half-sign prebuilt transaction
|
|
312
375
|
* @param params - {@see SignTransactionOptions}
|
|
313
376
|
* @returns {Promise<SignedTransaction | HalfSignedUtxoTransaction>}
|
|
314
377
|
*/
|
|
315
378
|
signTransaction<TNumber extends number | bigint = number>(params: SignTransactionOptions<TNumber>): Promise<SignedTransaction | HalfSignedUtxoTransaction>;
|
|
379
|
+
/**
|
|
380
|
+
* Sign a transaction with a custom signing function. Example use case is express external signer
|
|
381
|
+
* @param customSigningFunction custom signing function that returns a single signed transaction
|
|
382
|
+
* @param signTransactionParams parameters for custom signing function. Includes txPrebuild and pubs (for legacy tx only).
|
|
383
|
+
*
|
|
384
|
+
* @returns signed transaction as hex string
|
|
385
|
+
*/
|
|
386
|
+
signWithCustomSigningFunction<TNumber extends number | bigint>(customSigningFunction: UtxoCustomSigningFunction<TNumber>, signTransactionParams: {
|
|
387
|
+
txPrebuild: TransactionPrebuild<TNumber>;
|
|
388
|
+
pubs?: string[];
|
|
389
|
+
}): Promise<SignedTransaction>;
|
|
316
390
|
/**
|
|
317
391
|
* @param unspent
|
|
318
392
|
* @returns {boolean}
|
|
@@ -331,7 +405,7 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
331
405
|
publicKey?: string;
|
|
332
406
|
}): boolean;
|
|
333
407
|
/**
|
|
334
|
-
* Decompose a raw transaction into useful information, such as the total amounts,
|
|
408
|
+
* Decompose a raw psbt/transaction into useful information, such as the total amounts,
|
|
335
409
|
* change amounts, and transaction outputs.
|
|
336
410
|
* @param params
|
|
337
411
|
*/
|
|
@@ -359,6 +433,7 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
359
433
|
* @param params.signed return a half-signed transaction (default=true)
|
|
360
434
|
* @param params.walletPassphrase the wallet passphrase
|
|
361
435
|
* @param params.xprv the unencrypted xprv (used instead of wallet passphrase)
|
|
436
|
+
* @param params.apiKey for utxo coins other than [BTC,TBTC] this is a Block Chair api key
|
|
362
437
|
* @returns {*}
|
|
363
438
|
*/
|
|
364
439
|
recoverFromWrongChain<TNumber extends number | bigint = number>(params: RecoverFromWrongChainOptions): Promise<CrossChainRecoverySigned<TNumber> | CrossChainRecoveryUnsigned<TNumber>>;
|
|
@@ -378,6 +453,7 @@ export declare abstract class AbstractUtxoCoin extends BaseCoin {
|
|
|
378
453
|
supplementGenerateWallet(walletParams: SupplementGenerateWalletOptions, keychains: KeychainsTriplet): Promise<any>;
|
|
379
454
|
transactionDataAllowed(): boolean;
|
|
380
455
|
valuelessTransferAllowed(): boolean;
|
|
456
|
+
getRecoveryProvider(apiToken?: string): RecoveryProvider;
|
|
381
457
|
}
|
|
382
458
|
export {};
|
|
383
459
|
//# sourceMappingURL=abstractUtxoCoin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractUtxoCoin.d.ts","sourceRoot":"","sources":["../../src/abstractUtxoCoin.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAyB,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"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