@babylonlabs-io/ts-sdk 3.1.2 → 3.2.1

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.
Files changed (168) hide show
  1. package/dist/BTCVaultRegistry.abi-BH2-LHxN.cjs +2 -0
  2. package/dist/BTCVaultRegistry.abi-BH2-LHxN.cjs.map +1 -0
  3. package/dist/{BTCVaultRegistry.abi-BmHpMUWD.js → BTCVaultRegistry.abi-BzNTa_EU.js} +19 -1
  4. package/dist/BTCVaultRegistry.abi-BzNTa_EU.js.map +1 -0
  5. package/dist/{PayoutManager-DOdsgcUR.cjs → PayoutManager-B1Ev0r7o.cjs} +2 -2
  6. package/dist/{PayoutManager-DOdsgcUR.cjs.map → PayoutManager-B1Ev0r7o.cjs.map} +1 -1
  7. package/dist/{PayoutManager-BZ212yml.js → PayoutManager-xEGvTbhL.js} +3 -3
  8. package/dist/{PayoutManager-BZ212yml.js.map → PayoutManager-xEGvTbhL.js.map} +1 -1
  9. package/dist/{PeginManager-PyKbfy5q.cjs → PeginManager-BCRtUqyX.cjs} +2 -2
  10. package/dist/{PeginManager-PyKbfy5q.cjs.map → PeginManager-BCRtUqyX.cjs.map} +1 -1
  11. package/dist/{PeginManager-Dfr5Qe1g.js → PeginManager-sizm3dlw.js} +7 -7
  12. package/dist/{PeginManager-Dfr5Qe1g.js.map → PeginManager-sizm3dlw.js.map} +1 -1
  13. package/dist/buildAndBroadcastReclaim-CE77jzTp.cjs +2 -0
  14. package/dist/buildAndBroadcastReclaim-CE77jzTp.cjs.map +1 -0
  15. package/dist/{buildAndBroadcastReclaim-R0HNpLMD.js → buildAndBroadcastReclaim-rQyAiAUS.js} +901 -867
  16. package/dist/buildAndBroadcastReclaim-rQyAiAUS.js.map +1 -0
  17. package/dist/challengeAssert-B2otuf7y.js +509 -0
  18. package/dist/challengeAssert-B2otuf7y.js.map +1 -0
  19. package/dist/challengeAssert-C3eMcM5Y.cjs +2 -0
  20. package/dist/challengeAssert-C3eMcM5Y.cjs.map +1 -0
  21. package/dist/constants-CAm10Qwp.cjs +2 -0
  22. package/dist/constants-CAm10Qwp.cjs.map +1 -0
  23. package/dist/constants-CvQZuxKv.js +48 -0
  24. package/dist/constants-CvQZuxKv.js.map +1 -0
  25. package/dist/{index-CVBtBjQ5.js → index-BRsWXDlv.js} +6 -6
  26. package/dist/{index-CVBtBjQ5.js.map → index-BRsWXDlv.js.map} +1 -1
  27. package/dist/{index-DpjYs5yr.cjs → index-C6avwx1s.cjs} +2 -2
  28. package/dist/{index-DpjYs5yr.cjs.map → index-C6avwx1s.cjs.map} +1 -1
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.js +297 -298
  31. package/dist/index.js.map +1 -1
  32. package/dist/{pegin-registration-client-kdz4fT5_.js → pegin-registration-client-8tzSRDaq.js} +46 -45
  33. package/dist/pegin-registration-client-8tzSRDaq.js.map +1 -0
  34. package/dist/pegin-registration-client-Bmkh1OZ9.cjs +2 -0
  35. package/dist/pegin-registration-client-Bmkh1OZ9.cjs.map +1 -0
  36. package/dist/peginState-CIibG9S_.js +75 -0
  37. package/dist/peginState-CIibG9S_.js.map +1 -0
  38. package/dist/peginState-IyE22wWh.cjs +2 -0
  39. package/dist/peginState-IyE22wWh.cjs.map +1 -0
  40. package/dist/{primeVpAuth-BPj2TPdD.cjs → primeVpAuth-CXNXYKrh.cjs} +2 -2
  41. package/dist/{primeVpAuth-BPj2TPdD.cjs.map → primeVpAuth-CXNXYKrh.cjs.map} +1 -1
  42. package/dist/{primeVpAuth-CiCdRNGf.js → primeVpAuth-D4UWXQ76.js} +2 -2
  43. package/dist/{primeVpAuth-CiCdRNGf.js.map → primeVpAuth-D4UWXQ76.js.map} +1 -1
  44. package/dist/{registration-records-CKLAv3gw.js → registration-records-BBOz21Dm.js} +15 -15
  45. package/dist/{registration-records-CKLAv3gw.js.map → registration-records-BBOz21Dm.js.map} +1 -1
  46. package/dist/{registration-records-DFQgBaYi.cjs → registration-records-DaBufozs.cjs} +2 -2
  47. package/dist/{registration-records-DFQgBaYi.cjs.map → registration-records-DaBufozs.cjs.map} +1 -1
  48. package/dist/{reservation-DOAHVT3B.js → reservation-BZQABu4g.js} +2 -2
  49. package/dist/{reservation-DOAHVT3B.js.map → reservation-BZQABu4g.js.map} +1 -1
  50. package/dist/{reservation-ECxjZi5t.cjs → reservation-CA5knoQ0.cjs} +2 -2
  51. package/dist/{reservation-ECxjZi5t.cjs.map → reservation-CA5knoQ0.cjs.map} +1 -1
  52. package/dist/{signer-set-reader-DFAu6I-v.cjs → signer-set-reader-D-CyIYR5.cjs} +2 -2
  53. package/dist/{signer-set-reader-DFAu6I-v.cjs.map → signer-set-reader-D-CyIYR5.cjs.map} +1 -1
  54. package/dist/{signer-set-reader-BCtmSKUM.js → signer-set-reader-DFF9MgQN.js} +2 -2
  55. package/dist/{signer-set-reader-BCtmSKUM.js.map → signer-set-reader-DFF9MgQN.js.map} +1 -1
  56. package/dist/tbv/core/clients/eth/index.cjs +1 -1
  57. package/dist/tbv/core/clients/eth/index.js +4 -4
  58. package/dist/tbv/core/clients/eth/types.d.ts +8 -0
  59. package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
  60. package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
  61. package/dist/tbv/core/clients/index.cjs +1 -1
  62. package/dist/tbv/core/clients/index.js +6 -6
  63. package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
  64. package/dist/tbv/core/clients/vault-provider/status/index.js +1 -1
  65. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +14 -0
  66. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
  67. package/dist/tbv/core/contracts/index.cjs +1 -1
  68. package/dist/tbv/core/contracts/index.js +1 -1
  69. package/dist/tbv/core/index.cjs +1 -1
  70. package/dist/tbv/core/index.js +293 -294
  71. package/dist/tbv/core/index.js.map +1 -1
  72. package/dist/tbv/core/managers/index.cjs +1 -1
  73. package/dist/tbv/core/managers/index.js +2 -2
  74. package/dist/tbv/core/primitives/index.cjs +1 -1
  75. package/dist/tbv/core/primitives/index.js +29 -30
  76. package/dist/tbv/core/primitives/index.js.map +1 -1
  77. package/dist/tbv/core/primitives/psbt/__tests__/challengeAssert.test.d.ts +2 -0
  78. package/dist/tbv/core/primitives/psbt/__tests__/challengeAssert.test.d.ts.map +1 -0
  79. package/dist/tbv/core/primitives/psbt/__tests__/noPayout.test.d.ts +2 -0
  80. package/dist/tbv/core/primitives/psbt/__tests__/noPayout.test.d.ts.map +1 -0
  81. package/dist/tbv/core/primitives/psbt/challengeAssert.d.ts +43 -0
  82. package/dist/tbv/core/primitives/psbt/challengeAssert.d.ts.map +1 -1
  83. package/dist/tbv/core/primitives/psbt/constants.d.ts +50 -2
  84. package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
  85. package/dist/tbv/core/primitives/psbt/noPayout.d.ts +42 -0
  86. package/dist/tbv/core/primitives/psbt/noPayout.d.ts.map +1 -1
  87. package/dist/tbv/core/services/activation/activateVault.d.ts +50 -0
  88. package/dist/tbv/core/services/activation/activateVault.d.ts.map +1 -1
  89. package/dist/tbv/core/services/activation/index.d.ts +1 -1
  90. package/dist/tbv/core/services/activation/index.d.ts.map +1 -1
  91. package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts +9 -0
  92. package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts.map +1 -0
  93. package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +5 -7
  94. package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -1
  95. package/dist/tbv/core/services/delegated-claim/index.d.ts +3 -4
  96. package/dist/tbv/core/services/delegated-claim/index.d.ts.map +1 -1
  97. package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts.map +1 -1
  98. package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +14 -8
  99. package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -1
  100. package/dist/tbv/core/services/delegated-claim/types.d.ts +32 -19
  101. package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
  102. package/dist/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.d.ts +12 -0
  103. package/dist/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.d.ts.map +1 -0
  104. package/dist/tbv/core/services/deposit/peginState.d.ts +20 -1
  105. package/dist/tbv/core/services/deposit/peginState.d.ts.map +1 -1
  106. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +7 -0
  107. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
  108. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +46 -1
  109. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
  110. package/dist/tbv/core/services/index.cjs +1 -1
  111. package/dist/tbv/core/services/index.js +59 -59
  112. package/dist/tbv/core/utils/index.cjs +1 -1
  113. package/dist/tbv/core/utils/index.js +1 -1
  114. package/dist/tbv/core/wasm/__tests__/challengeAssertOutputConnector.test.d.ts +2 -0
  115. package/dist/tbv/core/wasm/__tests__/challengeAssertOutputConnector.test.d.ts.map +1 -0
  116. package/dist/tbv/core/wasm/index.cjs +1 -1
  117. package/dist/tbv/core/wasm/index.cjs.map +1 -1
  118. package/dist/tbv/core/wasm/index.d.ts +14 -2
  119. package/dist/tbv/core/wasm/index.d.ts.map +1 -1
  120. package/dist/tbv/core/wasm/index.js +81 -77
  121. package/dist/tbv/core/wasm/index.js.map +1 -1
  122. package/dist/tbv/index.cjs +1 -1
  123. package/dist/tbv/index.js +293 -294
  124. package/dist/tbv/index.js.map +1 -1
  125. package/dist/{toRefundInputs-BbAOOUg6.cjs → toRefundInputs-DOCLxqC1.cjs} +2 -2
  126. package/dist/{toRefundInputs-BbAOOUg6.cjs.map → toRefundInputs-DOCLxqC1.cjs.map} +1 -1
  127. package/dist/{toRefundInputs-DW14g6wH.js → toRefundInputs-Dso_QEr-.js} +5 -5
  128. package/dist/{toRefundInputs-DW14g6wH.js.map → toRefundInputs-Dso_QEr-.js.map} +1 -1
  129. package/dist/{types-Bda75Od0.cjs → types-DGr5HWwD.cjs} +2 -2
  130. package/dist/types-DGr5HWwD.cjs.map +1 -0
  131. package/dist/{types-C5jj3Cc-.js → types-Dbs--c2M.js} +2 -2
  132. package/dist/types-Dbs--c2M.js.map +1 -0
  133. package/dist/{verifyKeyPathSchnorrSignature-CQUut2-O.cjs → verifyKeyPathSchnorrSignature-BRTpEH9X.cjs} +2 -2
  134. package/dist/{verifyKeyPathSchnorrSignature-CQUut2-O.cjs.map → verifyKeyPathSchnorrSignature-BRTpEH9X.cjs.map} +1 -1
  135. package/dist/{verifyKeyPathSchnorrSignature-DxPbeSdQ.js → verifyKeyPathSchnorrSignature-IIj3Z2se.js} +2 -2
  136. package/dist/{verifyKeyPathSchnorrSignature-DxPbeSdQ.js.map → verifyKeyPathSchnorrSignature-IIj3Z2se.js.map} +1 -1
  137. package/dist/{verifyScriptPathSchnorrSignature-D2t1yACC.cjs → verifyScriptPathSchnorrSignature-CahYx5Td.cjs} +2 -2
  138. package/dist/{verifyScriptPathSchnorrSignature-D2t1yACC.cjs.map → verifyScriptPathSchnorrSignature-CahYx5Td.cjs.map} +1 -1
  139. package/dist/{verifyScriptPathSchnorrSignature-B3-VkvnK.js → verifyScriptPathSchnorrSignature-owu3BfyT.js} +2 -2
  140. package/dist/{verifyScriptPathSchnorrSignature-B3-VkvnK.js.map → verifyScriptPathSchnorrSignature-owu3BfyT.js.map} +1 -1
  141. package/package.json +3 -3
  142. package/dist/BTCVaultRegistry.abi-BmHpMUWD.js.map +0 -1
  143. package/dist/BTCVaultRegistry.abi-DffWFdpA.cjs +0 -2
  144. package/dist/BTCVaultRegistry.abi-DffWFdpA.cjs.map +0 -1
  145. package/dist/buildAndBroadcastReclaim-Da8rD5Z7.cjs +0 -2
  146. package/dist/buildAndBroadcastReclaim-Da8rD5Z7.cjs.map +0 -1
  147. package/dist/buildAndBroadcastReclaim-R0HNpLMD.js.map +0 -1
  148. package/dist/challengeAssert-Cp_GeRg8.js +0 -64
  149. package/dist/challengeAssert-Cp_GeRg8.js.map +0 -1
  150. package/dist/challengeAssert-Z7_YULBb.cjs +0 -2
  151. package/dist/challengeAssert-Z7_YULBb.cjs.map +0 -1
  152. package/dist/constants-BeYquVd-.js +0 -36
  153. package/dist/constants-BeYquVd-.js.map +0 -1
  154. package/dist/constants-BwCg5K6R.cjs +0 -2
  155. package/dist/constants-BwCg5K6R.cjs.map +0 -1
  156. package/dist/noPayout-B-vGXJ-V.js +0 -361
  157. package/dist/noPayout-B-vGXJ-V.js.map +0 -1
  158. package/dist/noPayout-DOHak0ui.cjs +0 -2
  159. package/dist/noPayout-DOHak0ui.cjs.map +0 -1
  160. package/dist/pegin-registration-client-C-abxMWq.cjs +0 -2
  161. package/dist/pegin-registration-client-C-abxMWq.cjs.map +0 -1
  162. package/dist/pegin-registration-client-kdz4fT5_.js.map +0 -1
  163. package/dist/peginState-BU2ONFXF.js +0 -68
  164. package/dist/peginState-BU2ONFXF.js.map +0 -1
  165. package/dist/peginState-DUv10EJR.cjs +0 -2
  166. package/dist/peginState-DUv10EJR.cjs.map +0 -1
  167. package/dist/types-Bda75Od0.cjs.map +0 -1
  168. package/dist/types-C5jj3Cc-.js.map +0 -1
@@ -36,32 +36,44 @@ export interface WatchtowerArtifactsSummary {
36
36
  claimableEventBlockNumber: bigint;
37
37
  /**
38
38
  * Groth16 verifying key the file carries (`verifying_key`, btc-vault
39
- * `delegated_claim.rs:514` @ ac4954e7). Compared with the caller's trusted
39
+ * `delegated_claim.rs:523` @ b534ff9e). Compared with the caller's trusted
40
40
  * key by `assertArtifactsUsableForVault`.
41
41
  */
42
42
  verifyingKeyHex: string;
43
- /** Hex challenger public keys the file carries BaBe sessions for. */
44
- babeSessionChallengerPubkeys: string[];
45
- /**
46
- * Challengers whose session is still
47
- * {@link BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX}. Such a file verifies but
48
- * cannot answer that challenger, so `assertArtifactsUsableForVault` refuses
49
- * it.
50
- */
51
- babeSessionPlaceholderChallengerPubkeys: string[];
43
+ babeSessions: BabeSessionsState;
52
44
  }
53
45
  /**
54
- * The `decryptor_artifacts_hex` a browser caller writes per challenger when
55
- * the real BaBe sessions are too large to hold in a tab.
46
+ * Whether the file carries BaBe sessions.
47
+ *
48
+ * An unjoined file (`babe_sessions` empty or absent) is the normal output of
49
+ * a browser assembly, and it cannot defend a claim. Claim, Assert and Payout
50
+ * finalize without the sessions, but answering a `ChallengeAssert` needs
51
+ * them: the watchtower decrypts the hashlock preimage from the joined
52
+ * session (`broadcast_wrongly_challenged.rs:152-183` @ b534ff9e), and an
53
+ * unanswered challenge lets the challenger's NoPayout spend Assert:0, which
54
+ * blocks the depositor's Payout (`nopayout.rs:1-21` @ b534ff9e). Join
55
+ * the sessions in before starting a claim by any route; `vaultd vp wt
56
+ * start-claim` enforces this, a browser-driven claim does not.
56
57
  *
57
- * btc-vault only checks that the value is non-empty hex
58
- * (`delegated_claim.rs:473-483` @ ac4954e7), so a file built from it verifies
59
- * yet cannot answer a challenge — join the real sessions in before using it.
60
- * #2598 tracks making an empty map a first-class "not joined yet" state.
58
+ * `joined: true` means a session is present for each listed key, as
59
+ * non-empty hex. The keys are returned as the file writes them. Once
60
+ * `assertArtifactsUsableForVault` resolves, each parses to a graph challenger
61
+ * and every challenger is covered (`validate_babe_sessions`,
62
+ * `delegated_claim.rs:455-503` @ b534ff9e), but the parse accepts either hex
63
+ * case, so a key need not string-equal the graph's lowercase key and one
64
+ * challenger can appear twice. Neither check decodes a session: only the
65
+ * watchtower does, so a present session is not proven usable.
61
66
  *
62
67
  * @experimental
63
68
  */
64
- export declare const BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX = "00";
69
+ export type BabeSessionsState = {
70
+ joined: false;
71
+ } | {
72
+ joined: true;
73
+ challengerPubkeys: string[];
74
+ };
75
+ /** The `babe_sessions` value of an unjoined file. */
76
+ export declare const UNJOINED_BABE_SESSIONS_JSON = "{}";
65
77
  /**
66
78
  * Inputs the vault provider supplies for artifact assembly.
67
79
  *
@@ -187,14 +199,15 @@ export interface DelegatedClaimSigningPlan {
187
199
  * The Groth16 verifying key for {@link DelegatedClaimVaultContext.proverCircuitVersion},
188
200
  * obtained from the `vault-provers` release or the prover service — never
189
201
  * from the vault provider or anything it serves. btc-vault
190
- * `delegated_claim.rs:405-414` @ ac4954e7: the builder cannot tell a
202
+ * `delegated_claim.rs:405-414` @ b534ff9e: the builder cannot tell a
191
203
  * substituted key from the real one, and a substituted key would let a
192
204
  * proof the depositor never authorized pass the pre-Assert check. This is
193
205
  * the value written into the file.
194
206
  */
195
207
  readonly trustedVerifyingKeyHex: string;
196
208
  readonly vault: DelegatedClaimVaultContext;
197
- readonly babeSessionsJson?: string;
209
+ /** Written into the file as `babe_sessions`; `{}` builds an unjoined file. */
210
+ readonly babeSessionsJson: string;
198
211
  readonly requests: readonly DelegatedClaimSigningRequest[];
199
212
  }
200
213
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IA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KG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC,6EAA6E;IAC7E,eAAe,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GACjC,OAAO,GACP,QAAQ,GACR,eAAe,GACf,iBAAiB,GACjB,mBAAmB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,wEAAwE;IACxE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC;;;;;;;;OAQG;IACH,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC;IAC3C,8EAA8E;IAC9E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,4BAA4B,EAAE,CAAC;CAC5D;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Depositor-graph presigning through the real WASM on a graph-v3 depositor
3
+ * graph built by btc-vault's own code (the watchtower-artifacts fixture, see
4
+ * `delegated-claim/__tests__/fixtures/watchtowerArtifactsV3/README.md`).
5
+ *
6
+ * The other signDepositorGraph tests mock the primitives; this file proves an
7
+ * honest btc-vault graph clears every check and reaches the wallet, and that
8
+ * a VP substituting a NoPayout's ChallengeAssert parents is refused before
9
+ * the wallet is asked to sign.
10
+ */
11
+ export {};
12
+ //# sourceMappingURL=signDepositorGraph.realGraph.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signDepositorGraph.realGraph.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
@@ -49,7 +49,15 @@ export declare enum PeginAction {
49
49
  */
50
50
  ACTIVATE_AND_REDEEM = "ACTIVATE_AND_REDEEM",
51
51
  /** Sign and broadcast HTLC refund transaction for an expired vault */
52
- REFUND_HTLC = "REFUND_HTLC"
52
+ REFUND_HTLC = "REFUND_HTLC",
53
+ /**
54
+ * Reveal the HTLC secret for a vault that expired after reaching Verified
55
+ * (`claimExpiredVault`), so the BTC the PegIn swept into the vault is
56
+ * claimed out to the keys recorded on chain. The only exit once the PegIn
57
+ * has spent the HTLC; the contract accepts it until the vault's
58
+ * `claimExpiredUntil` block.
59
+ */
60
+ CLAIM_EXPIRED_VAULT = "CLAIM_EXPIRED_VAULT"
53
61
  }
54
62
  /**
55
63
  * Protocol-level peg-in state (framework-agnostic)
@@ -95,6 +103,17 @@ export interface GetPeginProtocolStateOptions {
95
103
  * returned.
96
104
  */
97
105
  htlcSpentByPeginTx?: boolean;
106
+ /**
107
+ * EXPIRED only: the vault expired after reaching Verified, the PegIn
108
+ * transaction has spent the Pre-PegIn HTLC, and the claim window has not
109
+ * elapsed. The CSV refund is gone, so the claim is the remaining exit.
110
+ *
111
+ * The same spender proof as `htlcSpentByPeginTx` applies: offering the claim
112
+ * while the HTLC is unspent reveals the secret and lets anyone broadcast the
113
+ * PegIn ahead of the depositor's refund. When set, it takes precedence over
114
+ * `canRefund`, which a proven PegIn spend makes impossible.
115
+ */
116
+ canClaimExpired?: boolean;
98
117
  }
99
118
  /**
100
119
  * Determine the current protocol state and available actions based on contract
@@ -1 +1 @@
1
- {"version":3,"file":"peginState.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/peginState.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,oBAAY,cAAc;IACxB,oDAAoD;IACpD,OAAO,IAAI;IACX,gEAAgE;IAChE,QAAQ,IAAI;IACZ,qGAAqG;IACrG,MAAM,IAAI;IACV,0DAA0D;IAC1D,QAAQ,IAAI;IACZ,2FAA2F;IAC3F,UAAU,IAAI;IACd,kGAAkG;IAClG,OAAO,IAAI;IACX,uFAAuF;IACvF,mBAAmB,IAAI;IACvB,oFAAoF;IACpF,OAAO,IAAI;CACZ;AAED,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,eAAe,GACf,oBAAoB,CAAC;AAMzB;;GAEG;AACH,oBAAY,WAAW;IACrB,kEAAkE;IAClE,eAAe,oBAAoB;IACnC,+BAA+B;IAC/B,wBAAwB,6BAA6B;IACrD,uDAAuD;IACvD,6BAA6B,kCAAkC;IAC/D,uDAAuD;IACvD,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,mBAAmB,wBAAwB;IAC3C,sEAAsE;IACtE,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,cAAc,EAAE,cAAc,CAAC;IAC/B,uEAAuE;IACvE,gBAAgB,EAAE,WAAW,EAAE,CAAC;CACjC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gFAAgF;IAChF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,cAAc,EAC9B,OAAO,GAAE,4BAAiC,GACzC,kBAAkB,CAwFpB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,WAAW,GAClB,OAAO,CAET;AAMD;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;CAChC,GAAG,OAAO,CAGV;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;CAChC,GAAG,MAAM,CAKT"}
1
+ {"version":3,"file":"peginState.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/peginState.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,oBAAY,cAAc;IACxB,oDAAoD;IACpD,OAAO,IAAI;IACX,gEAAgE;IAChE,QAAQ,IAAI;IACZ,qGAAqG;IACrG,MAAM,IAAI;IACV,0DAA0D;IAC1D,QAAQ,IAAI;IACZ,2FAA2F;IAC3F,UAAU,IAAI;IACd,kGAAkG;IAClG,OAAO,IAAI;IACX,uFAAuF;IACvF,mBAAmB,IAAI;IACvB,oFAAoF;IACpF,OAAO,IAAI;CACZ;AAED,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,eAAe,GACf,oBAAoB,CAAC;AAMzB;;GAEG;AACH,oBAAY,WAAW;IACrB,kEAA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GV;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;CAChC,GAAG,MAAM,CAKT"}
@@ -33,6 +33,13 @@ export interface PayoutSigningContext {
33
33
  * Required for the depositor-graph NoPayout local rebuild.
34
34
  */
35
35
  timelockAssert: number;
36
+ /**
37
+ * ChallengeAssert CSV timelock from the locked offchain params version
38
+ * (blocks). Source: ProtocolParams contract via
39
+ * `ViemProtocolParamsReader.getOffchainParamsByVersion(...).timelockChallengeAssert`.
40
+ * Required to bind each NoPayout's ChallengeAssert parents before signing.
41
+ */
42
+ timelockChallengeAssert: number;
36
43
  /**
37
44
  * Security council member x-only public keys (hex, no prefix).
38
45
  * Source: ProtocolParams contract via
@@ -1 +1 @@
1
- {"version":3,"file":"runDepositorPresignFlow.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/runDepositorPresignFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAM3E,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQrE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,y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K,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAoRD;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAmMf"}
1
+ {"version":3,"file":"runDepositorPresignFlow.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/runDepositorPresignFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAM3E,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAYrE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,yDAAyD;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;;OAKG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,4BAA4B,EAAE,MAAM,CAAC;IACrC,iGAAiG;IACjG,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D;;;OAGG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,6BAA6B;IAC5C,yDAAyD;IACzD,YAAY,EAAE,iBAAiB,CAAC;IAChC,oEAAoE;IACpE,aAAa,EAAE,aAAa,CAAC;IAC7B,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,cAAc,EAAE,oBAAoB,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sEAAsE;IACtE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD;;;;;;;;;OASG;IACH,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAoRD;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAgNf"}
@@ -1,6 +1,43 @@
1
1
  import { Network } from '@babylonlabs-io/babylon-tbv-rust-wasm';
2
2
  import { BitcoinWallet } from '../../../../shared/wallets/interfaces';
3
- import { DepositorAsClaimerPresignatures, DepositorGraphTransactions } from '../../clients/vault-provider/types';
3
+ import { DepositorAsClaimerPresignatures, DepositorGraphTransactions, PresignDataPerChallenger } from '../../clients/vault-provider/types';
4
+ /** One challenger's NoPayout, checked against its canonical parents. */
5
+ export interface CheckedNoPayout {
6
+ /** The challenger's entry in the VP response */
7
+ challenger: PresignDataPerChallenger;
8
+ /** The challenger's x-only key (hex, no 0x prefix) */
9
+ challengerPubkey: string;
10
+ /** Assert:0, ChallengeAssertX:0 and ChallengeAssertY:0, in NoPayout input order */
11
+ prevouts: Array<{
12
+ script_pubkey: string;
13
+ value: number;
14
+ }>;
15
+ }
16
+ /** The NoPayout side of a depositor graph, checked and ready to build. */
17
+ export interface CheckedDepositorGraphNoPayouts {
18
+ /** The depositor-as-claimer's local challengers, derived from the context */
19
+ localChallengers: string[];
20
+ /** One entry per challenger, in the VP's order */
21
+ noPayouts: CheckedNoPayout[];
22
+ }
23
+ /**
24
+ * Check everything on the NoPayout side of the depositor graph that needs no
25
+ * wallet: the challenger set equals `local ∪ universal`, the Assert carries
26
+ * one ConnectorX and one ConnectorY per challenger, and for every challenger
27
+ * the ChallengeAssertX/Y are the canonical transactions for this Assert, the
28
+ * NoPayout spends exactly them with the canonical sequences, and it pays the
29
+ * challenger's BIP-86 key.
30
+ *
31
+ * `runDepositorPresignFlow` calls this before the deposit-terms approval and
32
+ * every payout signing prompt. `signDepositorGraph` calls it again because it
33
+ * is also a public entry point.
34
+ *
35
+ * @param depositorGraph - The depositor graph from the VP response
36
+ * @param ctx - Authoritative inputs the graph is checked against
37
+ * @returns The checked per-challenger data the NoPayout PSBTs are built from
38
+ * @throws If any check fails
39
+ */
40
+ export declare function assertDepositorGraphNoPayoutsCanonical(depositorGraph: DepositorGraphTransactions, ctx: DepositorGraphSigningContext): Promise<CheckedDepositorGraphNoPayouts>;
4
41
  /**
5
42
  * Authoritative inputs required to construct the depositor's Payout AND every
6
43
  * per-challenger NoPayout PSBT locally. Every field here must come from
@@ -37,6 +74,14 @@ export interface DepositorGraphSigningContext {
37
74
  * `ViemProtocolParamsReader.getOffchainParamsByVersion(...).timelockAssert`.
38
75
  */
39
76
  timelockAssert: number;
77
+ /**
78
+ * ChallengeAssert CSV timelock from the locked offchain params version
79
+ * (blocks). Sourced from the on-chain ProtocolParams contract via
80
+ * `ViemProtocolParamsReader.getOffchainParamsByVersion(...).timelockChallengeAssert`.
81
+ * Each NoPayout's ChallengeAssert inputs must carry it as their sequence,
82
+ * and it is part of the connector their ChallengeAssert parents pay to.
83
+ */
84
+ timelockChallengeAssert: number;
40
85
  /**
41
86
  * Security council member x-only public keys (hex, no prefix). Sourced from
42
87
  * the on-chain ProtocolParams contract via
@@ -1 +1 @@
1
- {"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAG3B,MAAM,oCAAoC,CAAC;AAoa5C;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,0EAA0E;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;;OAKG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,uEAAuE;IACvE,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,cAAc,EAAE,0BAA0B,CAAC;IAC3C,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,8DAA8D;IAC9D,cAAc,EAAE,4BAA4B,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CAiD1C"}
1
+ {"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAE1B,wBAAwB,EACzB,MAAM,oCAAoC,CAAC;AAuJ5C,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,UAAU,EAAE,wBAAwB,CAAC;IACrC,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,QAAQ,EAAE,KAAK,CAAC;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3D;AAED,0EAA0E;AAC1E,MAAM,WAAW,8BAA8B;IAC7C,6EAA6E;IAC7E,gBAA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AC9D,cAAc,EAAE,4BAA4B,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CAiD1C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-DOdsgcUR.cjs"),t=require("../../../buildAndBroadcastReclaim-Da8rD5Z7.cjs"),i=require("../wasm/index.cjs"),e=require("../../../peginState-DUv10EJR.cjs"),a=require("../../../state-C4WoNCy1.cjs");exports.computeHashlock=r.computeHashlock;exports.validateSecretAgainstHashlock=r.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.AssertBindingError=t.AssertBindingError;exports.BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX=t.BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.DelegatedClaimSigningIncompleteError=t.DelegatedClaimSigningIncompleteError;exports.GraphFingerprintError=t.GraphFingerprintError;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;exports.PayoutInputLeafError=t.PayoutInputLeafError;exports.PeginRegistrationMissingError=t.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=t.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=t.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=t.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=t.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=t.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.ReclaimUneconomicalError=t.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.SigningPlanMismatchError=t.SigningPlanMismatchError;exports.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assembleWatchtowerArtifactsFromSignatures=t.assembleWatchtowerArtifactsFromSignatures;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertAssertBindsClaimAndPayout=t.assertAssertBindsClaimAndPayout;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertReturnedGraphMatchesFingerprint=t.assertReturnedGraphMatchesFingerprint;exports.assertTermsMatchVault=t.assertTermsMatchVault;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.copyAssertConnectorLeaf=t.copyAssertConnectorLeaf;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.fingerprintReturnedGraph=t.fingerprintReturnedGraph;exports.isApplicationEntryPointMismatchError=t.isApplicationEntryPointMismatchError;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isHintAccepted=t.isHintAccepted;exports.isParticipantKeyDriftError=t.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=t.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=t.isPeginRegistrationNotFinalError;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.planDelegatedClaimSigning=t.planDelegatedClaimSigning;exports.readDelegatedClaimVaultContext=t.readDelegatedClaimVaultContext;exports.readStampedParticipantKeys=t.readStampedParticipantKeys;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDelegatedClaimPlan=t.signDelegatedClaimPlan;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.summarizeWatchtowerArtifacts=t.summarizeWatchtowerArtifacts;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=t.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=t.waitForPeginRegistrationDepth;exports.waitForPeginStatus=t.waitForPeginStatus;exports.attachFinalizedAssert=i.attachFinalizedAssert;exports.finalizePayout=i.finalizePayout;exports.finalizeWronglyChallenged=i.finalizeWronglyChallenged;exports.pinPegoutProof=i.pinPegoutProof;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.activationDeadlineBlocksRemaining=e.activationDeadlineBlocksRemaining;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;exports.ClaimerPegoutStatusValue=a.ClaimerPegoutStatusValue;exports.isPegoutTerminalStatus=a.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=a.isRecognizedPegoutStatus;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-B1Ev0r7o.cjs"),t=require("../../../buildAndBroadcastReclaim-CE77jzTp.cjs"),i=require("../wasm/index.cjs"),e=require("../../../peginState-IyE22wWh.cjs"),a=require("../../../state-C4WoNCy1.cjs");exports.computeHashlock=r.computeHashlock;exports.validateSecretAgainstHashlock=r.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.AssertBindingError=t.AssertBindingError;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.DelegatedClaimSigningIncompleteError=t.DelegatedClaimSigningIncompleteError;exports.GraphFingerprintError=t.GraphFingerprintError;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;exports.PayoutInputLeafError=t.PayoutInputLeafError;exports.PeginRegistrationMissingError=t.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=t.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=t.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=t.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=t.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=t.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.ReclaimUneconomicalError=t.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.SigningPlanMismatchError=t.SigningPlanMismatchError;exports.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assembleWatchtowerArtifactsFromSignatures=t.assembleWatchtowerArtifactsFromSignatures;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertAssertBindsClaimAndPayout=t.assertAssertBindsClaimAndPayout;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertReturnedGraphMatchesFingerprint=t.assertReturnedGraphMatchesFingerprint;exports.assertTermsMatchVault=t.assertTermsMatchVault;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.claimExpiredVault=t.claimExpiredVault;exports.copyAssertConnectorLeaf=t.copyAssertConnectorLeaf;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.fingerprintReturnedGraph=t.fingerprintReturnedGraph;exports.isApplicationEntryPointMismatchError=t.isApplicationEntryPointMismatchError;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isHintAccepted=t.isHintAccepted;exports.isParticipantKeyDriftError=t.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=t.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=t.isPeginRegistrationNotFinalError;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.planDelegatedClaimSigning=t.planDelegatedClaimSigning;exports.readDelegatedClaimVaultContext=t.readDelegatedClaimVaultContext;exports.readStampedParticipantKeys=t.readStampedParticipantKeys;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDelegatedClaimPlan=t.signDelegatedClaimPlan;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.summarizeWatchtowerArtifacts=t.summarizeWatchtowerArtifacts;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=t.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=t.waitForPeginRegistrationDepth;exports.waitForPeginStatus=t.waitForPeginStatus;exports.attachFinalizedAssert=i.attachFinalizedAssert;exports.finalizePayout=i.finalizePayout;exports.finalizeWronglyChallenged=i.finalizeWronglyChallenged;exports.pinPegoutProof=i.pinPegoutProof;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.activationDeadlineBlocksRemaining=e.activationDeadlineBlocksRemaining;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;exports.ClaimerPegoutStatusValue=a.ClaimerPegoutStatusValue;exports.isPegoutTerminalStatus=a.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=a.isRecognizedPegoutStatus;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,72 +1,72 @@
1
- import { c as s, v as e } from "../../../PayoutManager-BZ212yml.js";
2
- import { J as r, k as n, A as o, B as l, a8 as c, C as E, D as A, m as g, G as d, t as u, W as R, P, i as m, u as p, v as _, ah as C, ai as M, aj as h, ak as S, ab as F, ac as f, ad as y, ae as D, af as N, Z as V, S as I, V as v, a as T, b as O, c as B, d as K, l as H, e as L, f as b, q as U, h as X, z as G, n as W, a1 as w, ag as x, a9 as k, j as z, g as j, aa as Y, E as Z, K as q, M as J, a2 as Q, X as $, w as aa, x as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, o as Aa, H as ga, I as da, s as ua, N as Ra, O as Pa, L as ma, Q as pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Sa, y as Fa, a0 as fa } from "../../../buildAndBroadcastReclaim-R0HNpLMD.js";
3
- import { attachFinalizedAssert as Da, finalizePayout as Na, finalizeWronglyChallenged as Va, pinPegoutProof as Ia } from "../wasm/index.js";
4
- import { C as Ta, P as Oa, a as Ba, c as Ka, g as Ha, i as La } from "../../../peginState-BU2ONFXF.js";
5
- import { C as Ua, g as Xa, f as Ga } from "../../../state-CFn1rT74.js";
1
+ import { c as s, v as e } from "../../../PayoutManager-xEGvTbhL.js";
2
+ import { J as r, l as n, A as o, a8 as l, C as c, D as E, n as g, G as A, u as d, W as u, P as R, j as m, v as p, w as P, ah as _, ai as C, aj as M, ak as h, ab as F, ac as S, ad as V, ae as f, af as y, Z as N, S as D, V as I, a as v, b as T, d as O, e as K, m as b, f as B, g as U, t as H, i as L, B as x, o as G, a1 as W, ag as X, a9 as w, c as k, k as z, h as j, aa as Z, E as q, K as J, M as Q, a2 as Y, X as $, x as aa, y as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, q as ga, H as Aa, I as da, s as ua, N as Ra, O as ma, L as pa, Q as Pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Fa, z as Sa, a0 as Va } from "../../../buildAndBroadcastReclaim-rQyAiAUS.js";
3
+ import { attachFinalizedAssert as ya, finalizePayout as Na, finalizeWronglyChallenged as Da, pinPegoutProof as Ia } from "../wasm/index.js";
4
+ import { C as Ta, P as Oa, a as Ka, c as ba, g as Ba, i as Ua } from "../../../peginState-CIibG9S_.js";
5
+ import { C as La, g as xa, f as Ga } from "../../../state-CFn1rT74.js";
6
6
  export {
7
7
  r as ApplicationEntryPointMismatchError,
8
8
  n as ArtifactsVaultMismatchError,
9
9
  o as AssertBindingError,
10
- l as BABE_SESSION_PLACEHOLDER_DECRYPTOR_HEX,
11
- c as BIP68NotMatureError,
12
- E as ChallengerSetMismatchError,
13
- Ua as ClaimerPegoutStatusValue,
10
+ l as BIP68NotMatureError,
11
+ c as ChallengerSetMismatchError,
12
+ La as ClaimerPegoutStatusValue,
14
13
  Ta as ContractStatus,
15
- A as DELEGATED_CLAIM_TX_GRAPH_VERSION,
14
+ E as DELEGATED_CLAIM_TX_GRAPH_VERSION,
16
15
  g as DelegatedClaimSigningIncompleteError,
17
- d as GraphFingerprintError,
18
- u as PEGIN_ETH_CONFIRMATIONS,
19
- R as ParticipantKeyDriftError,
20
- P as PayoutDestinationError,
16
+ A as GraphFingerprintError,
17
+ d as PEGIN_ETH_CONFIRMATIONS,
18
+ u as ParticipantKeyDriftError,
19
+ R as PayoutDestinationError,
21
20
  m as PayoutInputLeafError,
22
21
  Oa as PeginAction,
23
22
  p as PeginRegistrationMissingError,
24
- _ as PeginRegistrationNotFinalError,
25
- C as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
26
- M as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
27
- h as RECLAIM_MAX_FEE_RATE_SATS_VB,
28
- S as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
23
+ P as PeginRegistrationNotFinalError,
24
+ _ as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
25
+ C as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
26
+ M as RECLAIM_MAX_FEE_RATE_SATS_VB,
27
+ h as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
29
28
  F as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
30
- f as REFUND_MAX_FEE_FRACTION_NUMERATOR,
31
- y as REFUND_MAX_FEE_RATE_SATS_VB,
32
- D as REFUND_VSIZE,
33
- N as ReclaimUneconomicalError,
34
- V as RegisteredVaultVersionMismatchError,
35
- I as SigningPlanMismatchError,
36
- v as VaultIdBindingError,
37
- T as activateVault,
38
- O as activateVaultAndRedeem,
39
- Ba as activationDeadlineBlocksRemaining,
40
- B as assembleWatchtowerArtifacts,
29
+ S as REFUND_MAX_FEE_FRACTION_NUMERATOR,
30
+ V as REFUND_MAX_FEE_RATE_SATS_VB,
31
+ f as REFUND_VSIZE,
32
+ y as ReclaimUneconomicalError,
33
+ N as RegisteredVaultVersionMismatchError,
34
+ D as SigningPlanMismatchError,
35
+ I as VaultIdBindingError,
36
+ v as activateVault,
37
+ T as activateVaultAndRedeem,
38
+ Ka as activationDeadlineBlocksRemaining,
39
+ O as assembleWatchtowerArtifacts,
41
40
  K as assembleWatchtowerArtifactsFromSignatures,
42
- H as assertArtifactsUsableForVault,
43
- L as assertAssertBindsClaimAndPayout,
44
- b as assertChallengerSetMatchesVault,
45
- U as assertClaimSpendsVault,
46
- X as assertPayoutPaysRegisteredScript,
47
- G as assertReturnedGraphMatchesFingerprint,
48
- W as assertTermsMatchVault,
49
- w as assertVaultProviderHintAccepted,
50
- Da as attachFinalizedAssert,
51
- x as buildAndBroadcastReclaim,
52
- k as buildAndBroadcastRefund,
53
- Ka as canPerformAction,
41
+ b as assertArtifactsUsableForVault,
42
+ B as assertAssertBindsClaimAndPayout,
43
+ U as assertChallengerSetMatchesVault,
44
+ H as assertClaimSpendsVault,
45
+ L as assertPayoutPaysRegisteredScript,
46
+ x as assertReturnedGraphMatchesFingerprint,
47
+ G as assertTermsMatchVault,
48
+ W as assertVaultProviderHintAccepted,
49
+ ya as attachFinalizedAssert,
50
+ X as buildAndBroadcastReclaim,
51
+ w as buildAndBroadcastRefund,
52
+ ba as canPerformAction,
53
+ k as claimExpiredVault,
54
54
  s as computeHashlock,
55
55
  z as copyAssertConnectorLeaf,
56
56
  j as deriveClaimerWotsKeypair,
57
- Y as estimateRefundFeeSats,
57
+ Z as estimateRefundFeeSats,
58
58
  Na as finalizePayout,
59
- Va as finalizeWronglyChallenged,
60
- Z as fingerprintReturnedGraph,
61
- Ha as getPeginProtocolState,
62
- La as isActivationDeadlinePassedOnChain,
63
- q as isApplicationEntryPointMismatchError,
64
- J as isDepositAmountValid,
65
- Q as isHintAccepted,
59
+ Da as finalizeWronglyChallenged,
60
+ q as fingerprintReturnedGraph,
61
+ Ba as getPeginProtocolState,
62
+ Ua as isActivationDeadlinePassedOnChain,
63
+ J as isApplicationEntryPointMismatchError,
64
+ Q as isDepositAmountValid,
65
+ Y as isHintAccepted,
66
66
  $ as isParticipantKeyDriftError,
67
67
  aa as isPeginRegistrationMissingError,
68
68
  ta as isPeginRegistrationNotFinalError,
69
- Xa as isPegoutTerminalStatus,
69
+ xa as isPegoutTerminalStatus,
70
70
  Ga as isRecognizedPegoutStatus,
71
71
  sa as isRegisteredVaultVersionMismatchError,
72
72
  ea as matchKeyHint,
@@ -78,21 +78,21 @@ export {
78
78
  la as resolveCurrentParticipantKeys,
79
79
  ca as resolveParticipantKeysAtEpochs,
80
80
  Ea as runDepositorPresignFlow,
81
- Aa as signDelegatedClaimPlan,
82
- ga as signDepositorGraph,
81
+ ga as signDelegatedClaimPlan,
82
+ Aa as signDepositorGraph,
83
83
  da as submitWotsPublicKey,
84
84
  ua as summarizeWatchtowerArtifacts,
85
85
  Ra as validateDepositAmount,
86
- Pa as validateMultiVaultDepositInputs,
87
- ma as validateOnChainParticipantKeys,
88
- pa as validateProviderSelection,
86
+ ma as validateMultiVaultDepositInputs,
87
+ pa as validateOnChainParticipantKeys,
88
+ Pa as validateProviderSelection,
89
89
  _a as validateRemainingCapacity,
90
90
  e as validateSecretAgainstHashlock,
91
91
  Ca as validateVaultAmounts,
92
92
  Ma as validateVaultProviderPubkey,
93
93
  ha as verifyRegisteredParticipantKeys,
94
- Sa as verifyRegisteredVaultVersions,
95
- Fa as waitForPeginRegistrationDepth,
96
- fa as waitForPeginStatus
94
+ Fa as verifyRegisteredVaultVersions,
95
+ Sa as waitForPeginRegistrationDepth,
96
+ Va as waitForPeginStatus
97
97
  };
98
98
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../abortSignals-msbmbqFe.cjs"),E=require("../../../signing-DvISftFk.cjs"),a=require("../../../validation-C6XTfZak.cjs"),n=require("./eth/index.cjs"),e=require("../../../psbtInputFields-BrV_ZfL_.cjs"),t=require("../../../fundPeginTransaction-54-Rwb2k.cjs"),_=require("../../../reservation-ECxjZi5t.cjs"),r=require("../../../bitcoin-D-O2GjbC.cjs"),T=require("../../../btcTxHash-CGb5BqFL.cjs");exports.combineAbortSignals=i.combineAbortSignals;exports.createTaprootScriptPathSignOptions=E.createTaprootScriptPathSignOptions;exports.createTaprootScriptPathSignOptionsForInput=E.createTaprootScriptPathSignOptionsForInput;exports.BITCOIN_ADDRESS_RE=a.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=a.COMPRESSED_PUBKEY_HEX_LEN;exports.HEX_RE=a.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=a.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=a.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=a.TXID_RE;exports.X_ONLY_PUBKEY_HEX_LEN=a.X_ONLY_PUBKEY_HEX_LEN;exports.waitForTransactionReceiptSmartAware=n.waitForTransactionReceiptSmartAware;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=_.UtxoNotAvailableError;exports.assertUtxosAvailable=_.assertUtxosAvailable;exports.extractInputsFromTransaction=_.extractInputsFromTransaction;exports.findOverlappingPendingVaults=_.findOverlappingPendingVaults;exports.validateUtxosAvailable=_.validateUtxosAvailable;exports.getNetwork=r.getNetwork;exports.calculateBtcTxHash=T.calculateBtcTxHash;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../abortSignals-msbmbqFe.cjs"),E=require("../../../signing-DvISftFk.cjs"),a=require("../../../validation-C6XTfZak.cjs"),n=require("./eth/index.cjs"),e=require("../../../psbtInputFields-BrV_ZfL_.cjs"),t=require("../../../fundPeginTransaction-54-Rwb2k.cjs"),_=require("../../../reservation-CA5knoQ0.cjs"),r=require("../../../bitcoin-D-O2GjbC.cjs"),T=require("../../../btcTxHash-CGb5BqFL.cjs");exports.combineAbortSignals=i.combineAbortSignals;exports.createTaprootScriptPathSignOptions=E.createTaprootScriptPathSignOptions;exports.createTaprootScriptPathSignOptionsForInput=E.createTaprootScriptPathSignOptionsForInput;exports.BITCOIN_ADDRESS_RE=a.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=a.COMPRESSED_PUBKEY_HEX_LEN;exports.HEX_RE=a.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=a.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=a.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=a.TXID_RE;exports.X_ONLY_PUBKEY_HEX_LEN=a.X_ONLY_PUBKEY_HEX_LEN;exports.waitForTransactionReceiptSmartAware=n.waitForTransactionReceiptSmartAware;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=_.UtxoNotAvailableError;exports.assertUtxosAvailable=_.assertUtxosAvailable;exports.extractInputsFromTransaction=_.extractInputsFromTransaction;exports.findOverlappingPendingVaults=_.findOverlappingPendingVaults;exports.validateUtxosAvailable=_.validateUtxosAvailable;exports.getNetwork=r.getNetwork;exports.calculateBtcTxHash=T.calculateBtcTxHash;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -4,7 +4,7 @@ import { B as _, C as T, H as p, K as S, M as n, T as i, X as A } from "../../..
4
4
  import { waitForTransactionReceiptSmartAware as P } from "./eth/index.js";
5
5
  import { B as u, a as R, c as U, b as I, d as l, g as F, h as N, f, s as g, e as x } from "../../../psbtInputFields-CCVyaQMi.js";
6
6
  import { B as m, D as L, L as d, M as C, c as D, P as X, b as H, a as h, S as M, T as b, W as Y, f as v, d as W, p as y, r as G } from "../../../fundPeginTransaction-CwhRbCQC.js";
7
- import { U as w, a as V, e as Z, f as k, v as j } from "../../../reservation-DOAHVT3B.js";
7
+ import { U as w, a as V, e as Z, f as k, v as j } from "../../../reservation-BZQABu4g.js";
8
8
  import { k as z } from "../../../bitcoin-C-TuHb-v.js";
9
9
  import { c as Q } from "../../../btcTxHash-BRZ8_EZq.js";
10
10
  export {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=challengeAssertOutputConnector.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"challengeAssertOutputConnector.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/wasm/__tests__/challengeAssertOutputConnector.test.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.create;var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var h=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of g(e))!b.call(t,i)&&i!==n&&l(t,i,{get:()=>e[i],enumerable:!(r=f(e,i))||r.enumerable});return t};var w=(t,e,n)=>(n=t!=null?d(p(t)):{},h(e||!t||!t.__esModule?l(n,"default",{value:t,enumerable:!0}):n,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",o=2,m=Uint8Array.from({length:s.length/o},(t,e)=>Number.parseInt(s.slice(e*o,e*o+o),16));let u;function a(){return u??(u=import("@babylonlabs-io/babylon-tbv-rust-wasm").catch(t=>{throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm failed to load. The module could not be resolved, or it threw while evaluating, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:t})}).then(async t=>{try{await t.initWasm()}catch(e){throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm resolved, but its WebAssembly binary failed to initialize, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:e})}return t})),u}async function A(t){return(await a()).createPrePeginTransaction(t)}async function S(t,e,n,r){return(await a()).buildPeginTxFromPrePegin(t,e,n,r)}async function C(t){return(await a()).getPrePeginHtlcConnectorInfo(t)}async function T(t,e,n,r,i,c){return(await a()).computeMinClaimValue(t,e,n,r,i,c)}async function W(t,e,n,r){return(await a()).computeMinPeginFee(t,e,n,r)}async function v(t,e,n,r,i,c,y,P){return(await a()).computePayoutFeeFloor(t,e,n,r,i,c,y,P)}async function x(){return(await a()).supportedTxGraphVersions()}async function I(t){return(await a()).peginP2aAnchorOutput(t)}async function F(t,e){return(await a()).validatePeginP2aAnchor(t,e)}async function z(t,e){return(await a()).createPayoutConnector(t,e)}async function M(t){return(await a()).getAssertPayoutScriptInfo(t)}async function E(t,e){return(await a()).getAssertNoPayoutScriptInfo(t,e)}async function V(t){return(await a()).getChallengeAssertScriptInfo(t)}async function H(t){return(await a()).expandAuthAnchor(t)}async function K(t,e){return(await a()).expandHashlockSecret(t,e)}async function N(t,e){return(await a()).expandWotsSeed(t,e)}async function _(t,e){return(await a()).deriveVaultId(t,e)}async function G(t,e){return(await a()).buildClaimPsbt(t,e)}async function k(t,e){return(await a()).buildAssertClaimerPsbt(t,e)}async function O(t,e){return(await a()).buildPayoutClaimerPsbt(t,e)}async function R(t,e){return(await a()).buildPayoutDepositorPsbt(t,e)}async function D(t,e){return(await a()).buildWronglyChallengedPsbts(t,e)}async function Y(t,e,n){return(await a()).pinPegoutProof(t,e,n)}async function L(t,e,n){return(await a()).attachFinalizedAssert(t,e,n)}async function j(t,e){return(await a()).finalizePayout(t,e)}async function B(t,e,n,r,i){return(await a()).finalizeWronglyChallenged(t,e,n,r,i)}async function U(t,e,n){return(await a()).finalizeClaimTx(t,e,n)}async function X(t,e){return(await a()).extractTapScriptSig(t,e)}async function q(t){return(await a()).wotsKeypairFromSeed(t)}async function J(t,e,n){return(await a()).validateWotsKeypairAgainstGraph(t,e,n)}async function Q(t){return(await a()).buildWatchtowerArtifacts(t)}async function Z(t,e){return(await a()).verifyWatchtowerArtifacts(t,e)}exports.TAP_INTERNAL_KEY=s;exports.attachFinalizedAssert=L;exports.buildAssertClaimerPsbt=k;exports.buildClaimPsbt=G;exports.buildPayoutClaimerPsbt=O;exports.buildPayoutDepositorPsbt=R;exports.buildPeginTxFromPrePegin=S;exports.buildWatchtowerArtifacts=Q;exports.buildWronglyChallengedPsbts=D;exports.computeMinClaimValue=T;exports.computeMinPeginFee=W;exports.computePayoutFeeFloor=v;exports.createPayoutConnector=z;exports.createPrePeginTransaction=A;exports.deriveVaultId=_;exports.expandAuthAnchor=H;exports.expandHashlockSecret=K;exports.expandWotsSeed=N;exports.extractTapScriptSig=X;exports.finalizeClaimTx=U;exports.finalizePayout=j;exports.finalizeWronglyChallenged=B;exports.getAssertNoPayoutScriptInfo=E;exports.getAssertPayoutScriptInfo=M;exports.getChallengeAssertScriptInfo=V;exports.getPrePeginHtlcConnectorInfo=C;exports.loadTbvWasm=a;exports.peginP2aAnchorOutput=I;exports.pinPegoutProof=Y;exports.supportedTxGraphVersions=x;exports.tapInternalPubkey=m;exports.validatePeginP2aAnchor=F;exports.validateWotsKeypairAgainstGraph=J;exports.verifyWatchtowerArtifacts=Z;exports.wotsKeypairFromSeed=q;
1
+ "use strict";var d=Object.create;var l=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var h=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!b.call(t,i)&&i!==n&&l(t,i,{get:()=>e[i],enumerable:!(r=g(e,i))||r.enumerable});return t};var w=(t,e,n)=>(n=t!=null?d(p(t)):{},h(e||!t||!t.__esModule?l(n,"default",{value:t,enumerable:!0}):n,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",o=2,A=Uint8Array.from({length:s.length/o},(t,e)=>Number.parseInt(s.slice(e*o,e*o+o),16));let u;function a(){return u??(u=import("@babylonlabs-io/babylon-tbv-rust-wasm").catch(t=>{throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm failed to load. The module could not be resolved, or it threw while evaluating, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:t})}).then(async t=>{try{await t.initWasm()}catch(e){throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm resolved, but its WebAssembly binary failed to initialize, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:e})}return t})),u}async function m(t){return(await a()).createPrePeginTransaction(t)}async function S(t,e,n,r){return(await a()).buildPeginTxFromPrePegin(t,e,n,r)}async function C(t){return(await a()).getPrePeginHtlcConnectorInfo(t)}async function T(t,e,n,r,i,c){return(await a()).computeMinClaimValue(t,e,n,r,i,c)}async function W(t,e,n,r){return(await a()).computeMinPeginFee(t,e,n,r)}async function v(t,e,n,r,i,c,y,P){return(await a()).computePayoutFeeFloor(t,e,n,r,i,c,y,P)}async function x(){return(await a()).supportedTxGraphVersions()}async function I(t){return(await a()).peginP2aAnchorOutput(t)}async function F(t,e){return(await a()).validatePeginP2aAnchor(t,e)}async function z(t,e){return(await a()).createPayoutConnector(t,e)}async function M(t){return(await a()).getAssertPayoutScriptInfo(t)}async function K(t,e){return(await a()).getAssertNoPayoutScriptInfo(t,e)}async function E(t){return(await a()).getChallengeAssertScriptInfo(t)}async function V(t){return(await a()).getChallengeAssertOutputScriptPubKey(t)}async function H(t){return(await a()).expandAuthAnchor(t)}async function N(t,e){return(await a()).expandHashlockSecret(t,e)}async function _(t,e){return(await a()).expandWotsSeed(t,e)}async function O(t,e){return(await a()).deriveVaultId(t,e)}async function G(t,e){return(await a()).buildClaimPsbt(t,e)}async function k(t,e){return(await a()).buildAssertClaimerPsbt(t,e)}async function R(t,e){return(await a()).buildPayoutClaimerPsbt(t,e)}async function D(t,e){return(await a()).buildPayoutDepositorPsbt(t,e)}async function Y(t,e){return(await a()).buildWronglyChallengedPsbts(t,e)}async function L(t,e,n){return(await a()).pinPegoutProof(t,e,n)}async function j(t,e,n){return(await a()).attachFinalizedAssert(t,e,n)}async function B(t,e){return(await a()).finalizePayout(t,e)}async function U(t,e,n,r,i){return(await a()).finalizeWronglyChallenged(t,e,n,r,i)}async function X(t,e,n){return(await a()).finalizeClaimTx(t,e,n)}async function q(t,e){return(await a()).extractTapScriptSig(t,e)}async function J(t){return(await a()).wotsKeypairFromSeed(t)}async function Q(t,e,n){return(await a()).validateWotsKeypairAgainstGraph(t,e,n)}async function Z(t){return(await a()).buildWatchtowerArtifacts(t)}async function $(t,e){return(await a()).verifyWatchtowerArtifacts(t,e)}exports.TAP_INTERNAL_KEY=s;exports.attachFinalizedAssert=j;exports.buildAssertClaimerPsbt=k;exports.buildClaimPsbt=G;exports.buildPayoutClaimerPsbt=R;exports.buildPayoutDepositorPsbt=D;exports.buildPeginTxFromPrePegin=S;exports.buildWatchtowerArtifacts=Z;exports.buildWronglyChallengedPsbts=Y;exports.computeMinClaimValue=T;exports.computeMinPeginFee=W;exports.computePayoutFeeFloor=v;exports.createPayoutConnector=z;exports.createPrePeginTransaction=m;exports.deriveVaultId=O;exports.expandAuthAnchor=H;exports.expandHashlockSecret=N;exports.expandWotsSeed=_;exports.extractTapScriptSig=q;exports.finalizeClaimTx=X;exports.finalizePayout=B;exports.finalizeWronglyChallenged=U;exports.getAssertNoPayoutScriptInfo=K;exports.getAssertPayoutScriptInfo=M;exports.getChallengeAssertOutputScriptPubKey=V;exports.getChallengeAssertScriptInfo=E;exports.getPrePeginHtlcConnectorInfo=C;exports.loadTbvWasm=a;exports.peginP2aAnchorOutput=I;exports.pinPegoutProof=L;exports.supportedTxGraphVersions=x;exports.tapInternalPubkey=A;exports.validatePeginP2aAnchor=F;exports.validateWotsKeypairAgainstGraph=Q;exports.verifyWatchtowerArtifacts=$;exports.wotsKeypairFromSeed=J;
2
2
  //# sourceMappingURL=index.cjs.map