utxo-lib 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/dist/src/address.d.ts.map +1 -1
  2. package/dist/src/address.js +1 -11
  3. package/dist/src/addressFormat.d.ts +1 -1
  4. package/dist/src/addressFormat.d.ts.map +1 -1
  5. package/dist/src/addressFormat.js +1 -1
  6. package/dist/src/bitgo/Musig2.d.ts +17 -115
  7. package/dist/src/bitgo/Musig2.d.ts.map +1 -1
  8. package/dist/src/bitgo/Musig2.js +101 -283
  9. package/dist/src/bitgo/UtxoPsbt.d.ts +49 -173
  10. package/dist/src/bitgo/UtxoPsbt.d.ts.map +1 -1
  11. package/dist/src/bitgo/UtxoPsbt.js +112 -634
  12. package/dist/src/bitgo/bbc/DashPsbt.d.ts +12 -0
  13. package/dist/src/bitgo/bbc/DashPsbt.d.ts.map +1 -0
  14. package/dist/src/bitgo/bbc/DashPsbt.js +27 -0
  15. package/dist/src/bitgo/bbc/DashTransaction.d.ts +39 -0
  16. package/dist/src/bitgo/bbc/DashTransaction.d.ts.map +1 -0
  17. package/dist/src/bitgo/bbc/DashTransaction.js +109 -0
  18. package/dist/src/bitgo/bbc/DashTransactionBuilder.d.ts +14 -0
  19. package/dist/src/bitgo/bbc/DashTransactionBuilder.d.ts.map +1 -0
  20. package/dist/src/bitgo/bbc/DashTransactionBuilder.js +28 -0
  21. package/dist/src/bitgo/bbc/index.d.ts +4 -0
  22. package/dist/src/bitgo/bbc/index.d.ts.map +1 -0
  23. package/dist/src/bitgo/{litecoin → bbc}/index.js +4 -4
  24. package/dist/src/bitgo/bitcoincash/address.js +2 -2
  25. package/dist/src/bitgo/index.d.ts +0 -10
  26. package/dist/src/bitgo/index.d.ts.map +1 -1
  27. package/dist/src/bitgo/index.js +2 -5
  28. package/dist/src/bitgo/outputScripts.d.ts +1 -3
  29. package/dist/src/bitgo/outputScripts.d.ts.map +1 -1
  30. package/dist/src/bitgo/outputScripts.js +10 -18
  31. package/dist/src/bitgo/parseInput.d.ts +20 -49
  32. package/dist/src/bitgo/parseInput.d.ts.map +1 -1
  33. package/dist/src/bitgo/parseInput.js +24 -108
  34. package/dist/src/bitgo/psbt/fromHalfSigned.d.ts.map +1 -1
  35. package/dist/src/bitgo/psbt/fromHalfSigned.js +6 -9
  36. package/dist/src/bitgo/signature.d.ts +3 -3
  37. package/dist/src/bitgo/signature.d.ts.map +1 -1
  38. package/dist/src/bitgo/signature.js +16 -48
  39. package/dist/src/bitgo/transaction.d.ts +3 -18
  40. package/dist/src/bitgo/transaction.d.ts.map +1 -1
  41. package/dist/src/bitgo/transaction.js +15 -28
  42. package/dist/src/bitgo/types.d.ts +0 -2
  43. package/dist/src/bitgo/types.d.ts.map +1 -1
  44. package/dist/src/bitgo/types.js +1 -1
  45. package/dist/src/bitgo/wallet/Psbt.d.ts +12 -90
  46. package/dist/src/bitgo/wallet/Psbt.d.ts.map +1 -1
  47. package/dist/src/bitgo/wallet/Psbt.js +71 -221
  48. package/dist/src/bitgo/wallet/Unspent.d.ts +0 -28
  49. package/dist/src/bitgo/wallet/Unspent.d.ts.map +1 -1
  50. package/dist/src/bitgo/wallet/Unspent.js +68 -173
  51. package/dist/src/bitgo/wallet/chains.d.ts +2 -2
  52. package/dist/src/bitgo/wallet/chains.d.ts.map +1 -1
  53. package/dist/src/bitgo/wallet/chains.js +1 -1
  54. package/dist/src/bitgo/zcash/ZcashPsbt.d.ts.map +1 -1
  55. package/dist/src/bitgo/zcash/ZcashPsbt.js +3 -4
  56. package/dist/src/networks.d.ts +2 -1
  57. package/dist/src/networks.d.ts.map +1 -1
  58. package/dist/src/networks.js +29 -22
  59. package/dist/src/noble_ecc.d.ts.map +1 -1
  60. package/dist/src/noble_ecc.js +2 -6
  61. package/dist/src/payments/p2tr.d.ts.map +1 -1
  62. package/dist/src/payments/p2tr.js +9 -15
  63. package/dist/src/taproot.d.ts +0 -16
  64. package/dist/src/taproot.d.ts.map +1 -1
  65. package/dist/src/taproot.js +2 -44
  66. package/dist/src/testutil/index.d.ts +0 -2
  67. package/dist/src/testutil/index.d.ts.map +1 -1
  68. package/dist/src/testutil/index.js +1 -3
  69. package/dist/src/testutil/mock.d.ts +1 -1
  70. package/dist/src/testutil/mock.d.ts.map +1 -1
  71. package/dist/src/testutil/mock.js +4 -12
  72. package/package.json +4 -6
  73. package/dist/src/bitgo/PsbtUtil.d.ts +0 -54
  74. package/dist/src/bitgo/PsbtUtil.d.ts.map +0 -1
  75. package/dist/src/bitgo/PsbtUtil.js +0 -79
  76. package/dist/src/bitgo/litecoin/LitecoinPsbt.d.ts +0 -10
  77. package/dist/src/bitgo/litecoin/LitecoinPsbt.d.ts.map +0 -1
  78. package/dist/src/bitgo/litecoin/LitecoinPsbt.js +0 -17
  79. package/dist/src/bitgo/litecoin/LitecoinTransaction.d.ts +0 -16
  80. package/dist/src/bitgo/litecoin/LitecoinTransaction.d.ts.map +0 -1
  81. package/dist/src/bitgo/litecoin/LitecoinTransaction.js +0 -46
  82. package/dist/src/bitgo/litecoin/LitecoinTransactionBuilder.d.ts +0 -10
  83. package/dist/src/bitgo/litecoin/LitecoinTransactionBuilder.d.ts.map +0 -1
  84. package/dist/src/bitgo/litecoin/LitecoinTransactionBuilder.js +0 -15
  85. package/dist/src/bitgo/litecoin/index.d.ts +0 -4
  86. package/dist/src/bitgo/litecoin/index.d.ts.map +0 -1
  87. package/dist/src/testutil/psbt.d.ts +0 -71
  88. package/dist/src/testutil/psbt.d.ts.map +0 -1
  89. package/dist/src/testutil/psbt.js +0 -147
  90. package/dist/src/testutil/transaction.d.ts +0 -61
  91. package/dist/src/testutil/transaction.d.ts.map +0 -1
  92. package/dist/src/testutil/transaction.js +0 -107
@@ -1,20 +1,14 @@
1
1
  /// <reference types="node" />
2
2
  import { Psbt as PsbtBase } from 'bip174';
3
- import { Bip32Derivation, PsbtInput } from 'bip174/src/lib/interfaces';
4
- import { BIP32Interface } from 'bip32';
5
3
  import { HDSigner, Psbt, TxOutput, Network } from '..';
6
4
  import { UtxoTransaction } from './UtxoTransaction';
7
- import { Triple } from './types';
8
- import { ProprietaryKeySearch, ProprietaryKeyValue } from './PsbtUtil';
9
- declare type SignatureParams = {
10
- /** When true, and add the second (last) nonce and signature for a taproot key
11
- * path spend deterministically. Throws an error if done for the first nonce/signature
12
- * of a taproot keypath spend. Ignore for all other input types.
13
- */
14
- deterministic: boolean;
15
- /** Allowed sighash types */
16
- sighashTypes: number[];
17
- };
5
+ import { ProprietaryKey } from 'bip174/src/lib/proprietaryKeyVal';
6
+ export declare const PSBT_PROPRIETARY_IDENTIFIER = "BITGO";
7
+ export declare enum ProprietaryKeySubtype {
8
+ ZEC_CONSENSUS_BRANCH_ID = 0,
9
+ MUSIG2_PARTICIPANT_PUB_KEYS = 1,
10
+ MUSIG2_PUB_NONCE = 2
11
+ }
18
12
  export interface HDTaprootSigner extends HDSigner {
19
13
  /**
20
14
  * The path string must match /^m(\/\d+'?)+$/
@@ -27,28 +21,10 @@ export interface HDTaprootSigner extends HDSigner {
27
21
  */
28
22
  signSchnorr(hash: Buffer): Buffer;
29
23
  }
30
- /**
31
- * HD signer object for taproot p2tr musig2 key path sign
32
- */
33
- export interface HDTaprootMusig2Signer extends HDSigner {
34
- /**
35
- * Musig2 requires signer's 32-bytes private key to be passed to it.
36
- */
37
- privateKey: Buffer;
38
- /**
39
- * The path string must match /^m(\/\d+'?)+$/
40
- * ex. m/44'/0'/0'/1/23 levels with ' must be hard derivations
41
- */
42
- derivePath(path: string): HDTaprootMusig2Signer;
43
- }
44
24
  export interface SchnorrSigner {
45
25
  publicKey: Buffer;
46
26
  signSchnorr(hash: Buffer): Buffer;
47
27
  }
48
- export interface Musig2Signer {
49
- publicKey: Buffer;
50
- privateKey: Buffer;
51
- }
52
28
  export interface TaprootSigner {
53
29
  leafHashes: Buffer[];
54
30
  signer: SchnorrSigner;
@@ -58,25 +34,40 @@ export interface PsbtOpts {
58
34
  maximumFeeRate?: number;
59
35
  bip32PathsAbsolute?: boolean;
60
36
  }
37
+ /**
38
+ * Psbt proprietary keydata object.
39
+ * <compact size uint identifier length> <bytes identifier> <compact size uint subtype> <bytes subkeydata>
40
+ * => <bytes valuedata>
41
+ */
42
+ export interface ProprietaryKeyValueData {
43
+ key: ProprietaryKey;
44
+ value: Buffer;
45
+ }
46
+ /**
47
+ * Psbt proprietary keydata object search fields.
48
+ * <compact size uint identifier length> <bytes identifier> <compact size uint subtype> <bytes subkeydata>
49
+ */
50
+ export interface ProprietaryKeySearch {
51
+ identifier: string;
52
+ subtype: number;
53
+ keydata?: Buffer;
54
+ identifierEncoding?: BufferEncoding;
55
+ }
61
56
  export declare class UtxoPsbt<Tx extends UtxoTransaction<bigint> = UtxoTransaction<bigint>> extends Psbt {
62
- private nonceStore;
63
57
  protected static transactionFromBuffer(buffer: Buffer, network: Network): UtxoTransaction<bigint>;
64
58
  static createPsbt(opts: PsbtOpts, data?: PsbtBase): UtxoPsbt;
65
59
  static fromBuffer(buffer: Buffer, opts: PsbtOpts): UtxoPsbt;
66
60
  static fromHex(data: string, opts: PsbtOpts): UtxoPsbt;
67
- /**
68
- * @param parent - Parent key. Matched with `bip32Derivations` using `fingerprint` property.
69
- * @param bip32Derivations - possible derivations for input or output
70
- * @param ignoreY - when true, ignore the y coordinate when matching public keys
71
- * @return derived bip32 node if matching derivation is found, undefined if none is found
72
- * @throws Error if more than one match is found
73
- */
74
- static deriveKeyPair(parent: BIP32Interface, bip32Derivations: Bip32Derivation[], { ignoreY }: {
75
- ignoreY: boolean;
76
- }): BIP32Interface | undefined;
77
- static deriveKeyPairForInput(bip32: BIP32Interface, input: PsbtInput): Buffer | undefined;
78
61
  get network(): Network;
79
62
  toHex(): string;
63
+ /**
64
+ * @return true iff PSBT input is finalized
65
+ */
66
+ isInputFinalized(inputIndex: number): boolean;
67
+ /**
68
+ * @return partialSig/tapScriptSig count iff input is not finalized
69
+ */
70
+ getSignatureCount(inputIndex: number): number;
80
71
  getNonWitnessPreviousTxids(): string[];
81
72
  addNonWitnessUtxos(txBufs: Record<string, Buffer>): this;
82
73
  static fromTransaction(transaction: UtxoTransaction<bigint>, prevOutputs: TxOutput<bigint>[]): UtxoPsbt;
@@ -84,30 +75,11 @@ export declare class UtxoPsbt<Tx extends UtxoTransaction<bigint> = UtxoTransacti
84
75
  protected static newTransaction(network: Network): UtxoTransaction<bigint>;
85
76
  protected get tx(): Tx;
86
77
  protected checkForSignatures(propName?: string): void;
87
- /**
88
- * @returns true if the input at inputIndex is a taproot key path.
89
- * Checks for presence of minimum required key path input fields and absence of any script path only input fields.
90
- */
91
- isTaprootKeyPathInput(inputIndex: number): boolean;
92
- /**
93
- * @returns true if the input at inputIndex is a taproot script path.
94
- * Checks for presence of minimum required script path input fields and absence of any key path only input fields.
95
- */
96
- isTaprootScriptPathInput(inputIndex: number): boolean;
97
- /**
98
- * @returns true if the input at inputIndex is a taproot
99
- */
100
- isTaprootInput(inputIndex: number): boolean;
101
78
  /**
102
79
  * Mostly copied from bitcoinjs-lib/ts_src/psbt.ts
103
80
  */
104
81
  finalizeAllInputs(): this;
105
82
  finalizeTaprootInput(inputIndex: number): this;
106
- /**
107
- * Finalizes a taproot musig2 input by aggregating all partial sigs.
108
- * IMPORTANT: Always call validate* function before finalizing.
109
- */
110
- finalizeTaprootMusig2Input(inputIndex: number): this;
111
83
  finalizeTapInputWithSingleLeafScriptAndSignature(inputIndex: number): this;
112
84
  /**
113
85
  * Mostly copied from bitcoinjs-lib/ts_src/psbt.ts
@@ -117,140 +89,44 @@ export declare class UtxoPsbt<Tx extends UtxoTransaction<bigint> = UtxoTransacti
117
89
  * validator.
118
90
  */
119
91
  validateSignaturesOfAllInputs(): boolean;
120
- /**
121
- * @returns true iff any matching valid signature is found for a derived pub key from given HD key pair.
122
- */
123
- validateSignaturesOfInputHD(inputIndex: number, hdKeyPair: BIP32Interface): boolean;
124
- /**
125
- * @returns true iff any valid signature(s) are found from bip32 data of PSBT or for given pub key.
126
- */
127
- validateSignaturesOfInputCommon(inputIndex: number, pubkey?: Buffer): boolean;
128
- private getMusig2SessionKey;
129
- /**
130
- * @returns true for following cases.
131
- * If valid musig2 partial signatures exists for both 2 keys, it will also verify aggregated sig
132
- * for aggregated tweaked key (output key), otherwise only verifies partial sig.
133
- * If pubkey is passed in input, it will check sig only for that pubkey,
134
- * if no sig exits for such key, throws error.
135
- * For invalid state of input data, it will throw errors.
136
- */
137
- validateTaprootMusig2SignaturesOfInput(inputIndex: number, pubkey?: Buffer): boolean;
138
92
  validateTaprootSignaturesOfInput(inputIndex: number, pubkey?: Buffer): boolean;
139
93
  /**
140
- * @param inputIndex
141
- * @param rootNodes optional input root bip32 nodes to verify with. If it is not provided, globalXpub will be used.
142
94
  * @return array of boolean values. True when corresponding index in `publicKeys` has signed the transaction.
143
95
  * If no signature in the tx or no public key matching signature, the validation is considered as false.
144
96
  */
145
- getSignatureValidationArray(inputIndex: number, { rootNodes }?: {
146
- rootNodes?: Triple<BIP32Interface>;
147
- }): Triple<boolean>;
97
+ getSignatureValidationArray(inputIndex: number): boolean[];
148
98
  /**
149
99
  * Mostly copied from bitcoinjs-lib/ts_src/psbt.ts
150
100
  */
151
- signAllInputsHD(hdKeyPair: HDTaprootSigner | HDTaprootMusig2Signer, params?: number[] | Partial<SignatureParams>): this;
101
+ signAllInputsHD(hdKeyPair: HDTaprootSigner, sighashTypes?: number[]): this;
152
102
  /**
153
103
  * Mostly copied from bitcoinjs-lib/ts_src/psbt.ts:signInputHD
154
104
  */
155
- signTaprootInputHD(inputIndex: number, hdKeyPair: HDTaprootSigner | HDTaprootMusig2Signer, { sighashTypes, deterministic }?: {
156
- sighashTypes?: number[] | undefined;
157
- deterministic?: boolean | undefined;
158
- }): this;
159
- signInputHD(inputIndex: number, hdKeyPair: HDTaprootSigner | HDTaprootMusig2Signer, params?: number[] | Partial<SignatureParams>): this;
160
- private getMusig2Participants;
161
- private getMusig2Nonces;
162
- /**
163
- * Signs p2tr musig2 key path input with 2 aggregated keys.
164
- *
165
- * Note: Only can sign deterministically as the cosigner
166
- * @param inputIndex
167
- * @param signer - XY public key and private key are required
168
- * @param sighashTypes
169
- * @param deterministic If true, sign the musig input deterministically
170
- */
171
- signTaprootMusig2Input(inputIndex: number, signer: Musig2Signer, { sighashTypes, deterministic }?: {
172
- sighashTypes?: number[] | undefined;
173
- deterministic?: boolean | undefined;
174
- }): this;
105
+ signTaprootInputHD(inputIndex: number, hdKeyPair: HDTaprootSigner, sighashTypes?: number[]): this;
175
106
  signTaprootInput(inputIndex: number, signer: SchnorrSigner, leafHashes: Buffer[], sighashTypes?: number[]): this;
176
- private getTaprootOutputScript;
177
107
  private getTaprootHashForSig;
178
108
  /**
179
- * Adds proprietary key value pair to PSBT input.
180
- * Default identifierEncoding is utf-8 for identifier.
109
+ * @retuns true iff the input is taproot.
181
110
  */
182
- addProprietaryKeyValToInput(inputIndex: number, keyValueData: ProprietaryKeyValue): this;
111
+ isTaprootInput(inputIndex: number): boolean;
183
112
  /**
184
- * Adds or updates (if exists) proprietary key value pair to PSBT input.
185
- * Default identifierEncoding is utf-8 for identifier.
113
+ * @returns hash and hashType for taproot input at inputIndex
114
+ * @throws error if input at inputIndex is not a taproot input
186
115
  */
187
- addOrUpdateProprietaryKeyValToInput(inputIndex: number, keyValueData: ProprietaryKeyValue): this;
116
+ getTaprootHashForSigChecked(inputIndex: number, sighashTypes?: number[], leafHash?: Buffer): {
117
+ hash: Buffer;
118
+ sighashType: number;
119
+ };
188
120
  /**
189
- * To search any data from proprietary key value against keydata.
121
+ * Adds proprietary key value pair to PSBT input.
190
122
  * Default identifierEncoding is utf-8 for identifier.
191
123
  */
192
- getProprietaryKeyVals(inputIndex: number, keySearch?: ProprietaryKeySearch): ProprietaryKeyValue[];
124
+ addProprietaryKeyValToInput(inputIndex: number, keyValueData: ProprietaryKeyValueData): this;
193
125
  /**
194
- * To delete any data from proprietary key value.
126
+ * To search any data from proprietary key value againts keydata.
195
127
  * Default identifierEncoding is utf-8 for identifier.
196
128
  */
197
- deleteProprietaryKeyVals(inputIndex: number, keysToDelete?: ProprietaryKeySearch): this;
198
- private createMusig2NonceForInput;
199
- private setMusig2NoncesInner;
200
- /**
201
- * Generates and sets MuSig2 nonce to taproot key path input at inputIndex.
202
- * If input is not a taproot key path, no action.
203
- *
204
- * @param inputIndex input index
205
- * @param keyPair derived key pair
206
- * @param sessionId Optional extra entropy. If provided it must either be a counter unique to this secret key,
207
- * (converted to an array of 32 bytes), or 32 uniformly random bytes.
208
- * @param deterministic If true, set the cosigner nonce deterministically
209
- */
210
- setInputMusig2Nonce(inputIndex: number, derivedKeyPair: BIP32Interface, params?: {
211
- sessionId?: Buffer;
212
- deterministic?: boolean;
213
- }): this;
214
- /**
215
- * Generates and sets MuSig2 nonce to taproot key path input at inputIndex.
216
- * If input is not a taproot key path, no action.
217
- *
218
- * @param inputIndex input index
219
- * @param keyPair HD root key pair
220
- * @param sessionId Optional extra entropy. If provided it must either be a counter unique to this secret key,
221
- * (converted to an array of 32 bytes), or 32 uniformly random bytes.
222
- * @param deterministic If true, set the cosigner nonce deterministically
223
- */
224
- setInputMusig2NonceHD(inputIndex: number, keyPair: BIP32Interface, params?: {
225
- sessionId?: Buffer;
226
- deterministic?: boolean;
227
- }): this;
228
- /**
229
- * Generates and sets MuSig2 nonce to all taproot key path inputs. Other inputs will be skipped.
230
- *
231
- * @param inputIndex input index
232
- * @param keyPair derived key pair
233
- * @param sessionId Optional extra entropy. If provided it must either be a counter unique to this secret key,
234
- * (converted to an array of 32 bytes), or 32 uniformly random bytes.
235
- */
236
- setAllInputsMusig2Nonce(keyPair: BIP32Interface, params?: {
237
- sessionId?: Buffer;
238
- deterministic?: boolean;
239
- }): this;
240
- /**
241
- * Generates and sets MuSig2 nonce to all taproot key path inputs. Other inputs will be skipped.
242
- *
243
- * @param inputIndex input index
244
- * @param keyPair HD root key pair
245
- * @param sessionId Optional extra entropy. If provided it must either be a counter unique to this secret key,
246
- * (converted to an array of 32 bytes), or 32 uniformly random bytes.
247
- */
248
- setAllInputsMusig2NonceHD(keyPair: BIP32Interface, params?: {
249
- sessionId?: Buffer;
250
- deterministic?: boolean;
251
- }): this;
129
+ getProprietaryKeyVals(inputIndex: number, keySearch?: ProprietaryKeySearch): ProprietaryKeyValueData[];
252
130
  clone(): this;
253
- extractTransaction(disableFeeCheck?: boolean): UtxoTransaction<bigint>;
254
131
  }
255
- export {};
256
132
  //# sourceMappingURL=UtxoPsbt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UtxoPsbt.d.ts","sourceRoot":"","sources":["../../../src/bitgo/UtxoPsbt.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EACL,eAAe,EACf,SAAS,EAIV,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAgB,cAAc,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,EAEL,QAAQ,EACR,IAAI,EAGJ,QAAQ,EACR,OAAO,EAIR,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAyBpD,OAAO,EAAqB,MAAM,EAAS,MAAM,SAAS,CAAC;AAE3D,OAAO,EAGL,oBAAoB,EAEpB,mBAAmB,EAEpB,MAAM,YAAY,CAAC;AAEpB,aAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,4BAA4B;IAC5B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AA6BF,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC;IAC1C;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,QAAQ;IACrD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG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