@babylonlabs-io/ts-sdk 3.3.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/{BTCVaultRegistry.abi-BzNTa_EU.js → BTCVaultRegistry.abi-DnP4UkB5.js} +9 -140
  2. package/dist/BTCVaultRegistry.abi-DnP4UkB5.js.map +1 -0
  3. package/dist/{BTCVaultRegistry.abi-BH2-LHxN.cjs → BTCVaultRegistry.abi-DzbfZ9_s.cjs} +2 -2
  4. package/dist/BTCVaultRegistry.abi-DzbfZ9_s.cjs.map +1 -0
  5. package/dist/{PayoutManager-xEGvTbhL.js → PayoutManager-BUWP-H-q.js} +3 -3
  6. package/dist/PayoutManager-BUWP-H-q.js.map +1 -0
  7. package/dist/{PayoutManager-B1Ev0r7o.cjs → PayoutManager-Dopxq_Jv.cjs} +2 -2
  8. package/dist/PayoutManager-Dopxq_Jv.cjs.map +1 -0
  9. package/dist/{PeginManager-D2R4Q1bN.cjs → PeginManager-CMbRRTnr.cjs} +2 -2
  10. package/dist/PeginManager-CMbRRTnr.cjs.map +1 -0
  11. package/dist/{PeginManager-CQ9bVPR3.js → PeginManager-Cas6_j7t.js} +7 -7
  12. package/dist/PeginManager-Cas6_j7t.js.map +1 -0
  13. package/dist/{ProtocolParams.abi-Cv77fsUe.js → ProtocolParams.abi-CuDl7AuC.js} +3 -3
  14. package/dist/{ProtocolParams.abi-Cv77fsUe.js.map → ProtocolParams.abi-CuDl7AuC.js.map} +1 -1
  15. package/dist/{ProtocolParams.abi-BgEZaQ2I.cjs → ProtocolParams.abi-DWfIh6VH.cjs} +2 -2
  16. package/dist/{ProtocolParams.abi-BgEZaQ2I.cjs.map → ProtocolParams.abi-DWfIh6VH.cjs.map} +1 -1
  17. package/dist/VaultErrors.abi-Dc3UnB_h.js +5 -0
  18. package/dist/{VaultErrors.abi-Boz4w97c.js.map → VaultErrors.abi-Dc3UnB_h.js.map} +1 -1
  19. package/dist/VaultErrors.abi-Hjn1CdLs.cjs +2 -0
  20. package/dist/{VaultErrors.abi-DQ18kM0L.cjs.map → VaultErrors.abi-Hjn1CdLs.cjs.map} +1 -1
  21. package/dist/{buildAndBroadcastReclaim-CQANDXVJ.js → buildAndBroadcastReclaim-ByXYSUwj.js} +372 -337
  22. package/dist/buildAndBroadcastReclaim-ByXYSUwj.js.map +1 -0
  23. package/dist/buildAndBroadcastReclaim-OBWjvzuC.cjs +2 -0
  24. package/dist/buildAndBroadcastReclaim-OBWjvzuC.cjs.map +1 -0
  25. package/dist/challengeAssert-eUMgmpMk.cjs +2 -0
  26. package/dist/challengeAssert-eUMgmpMk.cjs.map +1 -0
  27. package/dist/{challengeAssert-B2otuf7y.js → challengeAssert-pJP7MKhG.js} +164 -164
  28. package/dist/challengeAssert-pJP7MKhG.js.map +1 -0
  29. package/dist/constants-BCg6O0PX.cjs +2 -0
  30. package/dist/constants-BCg6O0PX.cjs.map +1 -0
  31. package/dist/constants-CmDDuM3L.js +50 -0
  32. package/dist/constants-CmDDuM3L.js.map +1 -0
  33. package/dist/{index-BRsWXDlv.js → index-B-9aXMxk.js} +6 -6
  34. package/dist/{index-BRsWXDlv.js.map → index-B-9aXMxk.js.map} +1 -1
  35. package/dist/{index-C6avwx1s.cjs → index-Dn7RlsKK.cjs} +2 -2
  36. package/dist/{index-C6avwx1s.cjs.map → index-Dn7RlsKK.cjs.map} +1 -1
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +68 -67
  39. package/dist/pegin-registration-client-DLlaZbsZ.cjs +2 -0
  40. package/dist/pegin-registration-client-DLlaZbsZ.cjs.map +1 -0
  41. package/dist/{pegin-registration-client-Cvjk4ILq.js → pegin-registration-client-ZI0k10_3.js} +90 -96
  42. package/dist/pegin-registration-client-ZI0k10_3.js.map +1 -0
  43. package/dist/{primeVpAuth-D4UWXQ76.js → primeVpAuth-C-ET0XF4.js} +2 -2
  44. package/dist/{primeVpAuth-D4UWXQ76.js.map → primeVpAuth-C-ET0XF4.js.map} +1 -1
  45. package/dist/{primeVpAuth-CXNXYKrh.cjs → primeVpAuth-Ch-ig2My.cjs} +2 -2
  46. package/dist/{primeVpAuth-CXNXYKrh.cjs.map → primeVpAuth-Ch-ig2My.cjs.map} +1 -1
  47. package/dist/registration-records-CKc0OVuK.cjs +2 -0
  48. package/dist/registration-records-CKc0OVuK.cjs.map +1 -0
  49. package/dist/{registration-records-DJJC2NiO.js → registration-records-D39ApuHS.js} +141 -141
  50. package/dist/registration-records-D39ApuHS.js.map +1 -0
  51. package/dist/{signer-set-reader-GrFe_rsW.cjs → signer-set-reader-CJfV-GDz.cjs} +2 -2
  52. package/dist/signer-set-reader-CJfV-GDz.cjs.map +1 -0
  53. package/dist/{signer-set-reader-CSUe92zE.js → signer-set-reader-DiwLeqik.js} +3 -3
  54. package/dist/signer-set-reader-DiwLeqik.js.map +1 -0
  55. package/dist/tbv/core/clients/eth/index.cjs +1 -1
  56. package/dist/tbv/core/clients/eth/index.js +4 -4
  57. package/dist/tbv/core/clients/eth/operation-key-reader.d.ts +5 -1
  58. package/dist/tbv/core/clients/eth/operation-key-reader.d.ts.map +1 -1
  59. package/dist/tbv/core/clients/eth/protocol-params-validation.d.ts.map +1 -1
  60. package/dist/tbv/core/clients/eth/registration-logs-error.d.ts +6 -6
  61. package/dist/tbv/core/clients/eth/registration-records.d.ts +1 -1
  62. package/dist/tbv/core/clients/eth/signer-set-reader.d.ts.map +1 -1
  63. package/dist/tbv/core/clients/eth/types.d.ts +32 -13
  64. package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
  65. package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +1 -1
  66. package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
  67. package/dist/tbv/core/clients/index.cjs +1 -1
  68. package/dist/tbv/core/clients/index.d.ts +4 -2
  69. package/dist/tbv/core/clients/index.d.ts.map +1 -1
  70. package/dist/tbv/core/clients/index.js +6 -6
  71. package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
  72. package/dist/tbv/core/clients/vault-provider/status/index.js +1 -1
  73. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +5 -111
  74. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
  75. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +2 -2
  76. package/dist/tbv/core/contracts/abis/vaultErrors.abi.json.d.ts +1 -1
  77. package/dist/tbv/core/contracts/index.cjs +1 -1
  78. package/dist/tbv/core/contracts/index.js +3 -3
  79. package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsCore.test.d.ts +1 -1
  80. package/dist/tbv/core/deposit-terms/commissionCeiling.d.ts +1 -1
  81. package/dist/tbv/core/deposit-terms/depositTerms.d.ts +11 -9
  82. package/dist/tbv/core/deposit-terms/depositTerms.d.ts.map +1 -1
  83. package/dist/tbv/core/deposit-terms/rebuildDepositTermsCore.d.ts.map +1 -1
  84. package/dist/tbv/core/index.cjs +1 -1
  85. package/dist/tbv/core/index.js +69 -68
  86. package/dist/tbv/core/managers/PayoutManager.d.ts +9 -3
  87. package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
  88. package/dist/tbv/core/managers/PeginManager.d.ts +13 -3
  89. package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
  90. package/dist/tbv/core/managers/index.cjs +1 -1
  91. package/dist/tbv/core/managers/index.js +2 -2
  92. package/dist/tbv/core/primitives/__tests__/vaultCoreVersion.test.d.ts +1 -1
  93. package/dist/tbv/core/primitives/challengers.d.ts +12 -5
  94. package/dist/tbv/core/primitives/challengers.d.ts.map +1 -1
  95. package/dist/tbv/core/primitives/index.cjs +1 -1
  96. package/dist/tbv/core/primitives/index.d.ts +1 -1
  97. package/dist/tbv/core/primitives/index.js +3 -3
  98. package/dist/tbv/core/primitives/psbt/__tests__/deriveExpectedPeginPayoutScriptPubKey.test.d.ts +1 -1
  99. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
  100. package/dist/tbv/core/primitives/psbt/constants.d.ts +38 -13
  101. package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
  102. package/dist/tbv/core/primitives/psbt/depositorClaim.d.ts +3 -6
  103. package/dist/tbv/core/primitives/psbt/depositorClaim.d.ts.map +1 -1
  104. package/dist/tbv/core/primitives/psbt/pegin.d.ts +29 -9
  105. package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
  106. package/dist/tbv/core/primitives/psbt/refund.d.ts.map +1 -1
  107. package/dist/tbv/core/recovery/peginParamsCandidates.d.ts +1 -1
  108. package/dist/tbv/core/recovery/reconstructPeginParams.d.ts.map +1 -1
  109. package/dist/tbv/core/services/delegated-claim/__tests__/realWasmWatchtowerArtifacts.test.d.ts +2 -2
  110. package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +2 -1
  111. package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -1
  112. package/dist/tbv/core/services/delegated-claim/challengerBinding.d.ts +3 -3
  113. package/dist/tbv/core/services/delegated-claim/challengerBinding.d.ts.map +1 -1
  114. package/dist/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.d.ts +1 -1
  115. package/dist/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.d.ts.map +1 -1
  116. package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts +2 -1
  117. package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts.map +1 -1
  118. package/dist/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.d.ts +1 -1
  119. package/dist/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.d.ts.map +1 -1
  120. package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +3 -3
  121. package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -1
  122. package/dist/tbv/core/services/delegated-claim/types.d.ts +8 -9
  123. package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
  124. package/dist/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.d.ts +3 -3
  125. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +19 -4
  126. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
  127. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +17 -3
  128. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
  129. package/dist/tbv/core/services/index.cjs +1 -1
  130. package/dist/tbv/core/services/index.js +44 -43
  131. package/dist/tbv/core/services/participants/readStampedParticipantKeys.d.ts +19 -7
  132. package/dist/tbv/core/services/participants/readStampedParticipantKeys.d.ts.map +1 -1
  133. package/dist/tbv/core/services/refund/__tests__/readRefundPrePeginContext.test.d.ts +12 -0
  134. package/dist/tbv/core/services/refund/__tests__/readRefundPrePeginContext.test.d.ts.map +1 -0
  135. package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts +41 -12
  136. package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts.map +1 -1
  137. package/dist/tbv/core/services/refund/index.d.ts +1 -0
  138. package/dist/tbv/core/services/refund/index.d.ts.map +1 -1
  139. package/dist/tbv/core/services/refund/readRefundPrePeginContext.d.ts +41 -0
  140. package/dist/tbv/core/services/refund/readRefundPrePeginContext.d.ts.map +1 -0
  141. package/dist/tbv/core/wasm/index.cjs.map +1 -1
  142. package/dist/tbv/core/wasm/index.d.ts +8 -11
  143. package/dist/tbv/core/wasm/index.d.ts.map +1 -1
  144. package/dist/tbv/core/wasm/index.js.map +1 -1
  145. package/dist/tbv/index.cjs +1 -1
  146. package/dist/tbv/index.js +69 -68
  147. package/dist/toRefundInputs-BSQjDOK9.cjs +2 -0
  148. package/dist/toRefundInputs-BSQjDOK9.cjs.map +1 -0
  149. package/dist/{toRefundInputs-DH-1bRNY.js → toRefundInputs-BbbvPb2A.js} +175 -173
  150. package/dist/toRefundInputs-BbbvPb2A.js.map +1 -0
  151. package/dist/{types-BC2TGzcp.cjs → types-BnZIbDHb.cjs} +2 -2
  152. package/dist/types-BnZIbDHb.cjs.map +1 -0
  153. package/dist/{types-24A9Qoxb.js → types-K_aM5GZO.js} +39 -39
  154. package/dist/types-K_aM5GZO.js.map +1 -0
  155. package/dist/{verifyKeyPathSchnorrSignature-IIj3Z2se.js → verifyKeyPathSchnorrSignature-DPXOFOol.js} +2 -2
  156. package/dist/{verifyKeyPathSchnorrSignature-IIj3Z2se.js.map → verifyKeyPathSchnorrSignature-DPXOFOol.js.map} +1 -1
  157. package/dist/{verifyKeyPathSchnorrSignature-BRTpEH9X.cjs → verifyKeyPathSchnorrSignature-DcxCojp0.cjs} +2 -2
  158. package/dist/{verifyKeyPathSchnorrSignature-BRTpEH9X.cjs.map → verifyKeyPathSchnorrSignature-DcxCojp0.cjs.map} +1 -1
  159. package/dist/verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs +2 -0
  160. package/dist/verifyScriptPathSchnorrSignature-CgDa9Rcg.cjs.map +1 -0
  161. package/dist/{verifyScriptPathSchnorrSignature-owu3BfyT.js → verifyScriptPathSchnorrSignature-D-fdi-sG.js} +462 -459
  162. package/dist/verifyScriptPathSchnorrSignature-D-fdi-sG.js.map +1 -0
  163. package/package.json +3 -3
  164. package/dist/BTCVaultRegistry.abi-BH2-LHxN.cjs.map +0 -1
  165. package/dist/BTCVaultRegistry.abi-BzNTa_EU.js.map +0 -1
  166. package/dist/PayoutManager-B1Ev0r7o.cjs.map +0 -1
  167. package/dist/PayoutManager-xEGvTbhL.js.map +0 -1
  168. package/dist/PeginManager-CQ9bVPR3.js.map +0 -1
  169. package/dist/PeginManager-D2R4Q1bN.cjs.map +0 -1
  170. package/dist/VaultErrors.abi-Boz4w97c.js +0 -5
  171. package/dist/VaultErrors.abi-DQ18kM0L.cjs +0 -2
  172. package/dist/buildAndBroadcastReclaim-CQANDXVJ.js.map +0 -1
  173. package/dist/buildAndBroadcastReclaim-DPk36Uhp.cjs +0 -2
  174. package/dist/buildAndBroadcastReclaim-DPk36Uhp.cjs.map +0 -1
  175. package/dist/challengeAssert-B2otuf7y.js.map +0 -1
  176. package/dist/challengeAssert-C3eMcM5Y.cjs +0 -2
  177. package/dist/challengeAssert-C3eMcM5Y.cjs.map +0 -1
  178. package/dist/constants-CAm10Qwp.cjs +0 -2
  179. package/dist/constants-CAm10Qwp.cjs.map +0 -1
  180. package/dist/constants-CvQZuxKv.js +0 -48
  181. package/dist/constants-CvQZuxKv.js.map +0 -1
  182. package/dist/pegin-registration-client-CdRyXP3j.cjs +0 -2
  183. package/dist/pegin-registration-client-CdRyXP3j.cjs.map +0 -1
  184. package/dist/pegin-registration-client-Cvjk4ILq.js.map +0 -1
  185. package/dist/registration-records-DJJC2NiO.js.map +0 -1
  186. package/dist/registration-records-XQMIKjGV.cjs +0 -2
  187. package/dist/registration-records-XQMIKjGV.cjs.map +0 -1
  188. package/dist/signer-set-reader-CSUe92zE.js.map +0 -1
  189. package/dist/signer-set-reader-GrFe_rsW.cjs.map +0 -1
  190. package/dist/toRefundInputs-DH-1bRNY.js.map +0 -1
  191. package/dist/toRefundInputs-DRmK83fv.cjs +0 -2
  192. package/dist/toRefundInputs-DRmK83fv.cjs.map +0 -1
  193. package/dist/types-24A9Qoxb.js.map +0 -1
  194. package/dist/types-BC2TGzcp.cjs.map +0 -1
  195. package/dist/verifyScriptPathSchnorrSignature-CahYx5Td.cjs +0 -2
  196. package/dist/verifyScriptPathSchnorrSignature-CahYx5Td.cjs.map +0 -1
  197. package/dist/verifyScriptPathSchnorrSignature-owu3BfyT.js.map +0 -1
@@ -1,79 +1,79 @@
1
- import { Transaction as b, Psbt as _, payments as j } from "bitcoinjs-lib";
1
+ import { Transaction as b, Psbt as H, payments as j } from "bitcoinjs-lib";
2
2
  import { Buffer as f } from "buffer";
3
- import { loadTbvWasm as J, tapInternalPubkey as N, getAssertNoPayoutScriptInfo as Z, getChallengeAssertScriptInfo as tt } from "./tbv/core/wasm/index.js";
4
- import { u as C, T as A, s as g, d as k, h as m, S as B, p as et, k as ot, l as Q } from "./bitcoin-C-TuHb-v.js";
5
- import { n as rt, l as nt, d as st, P as E, m as it } from "./verifyScriptPathSchnorrSignature-owu3BfyT.js";
6
- import { R as q, a as X, N as M, b as D, c as G, d as at, A as ut, C as Y, e as H, f as ct, g as lt, h as ht, i as pt } from "./constants-CvQZuxKv.js";
7
- import { D as z } from "./fundPeginTransaction-CwhRbCQC.js";
3
+ import { loadTbvWasm as J, tapInternalPubkey as k, getAssertNoPayoutScriptInfo as Z, getChallengeAssertScriptInfo as ee } from "./tbv/core/wasm/index.js";
4
+ import { u as R, T as A, s as g, d as N, h as m, S as B, p as te, k as oe, l as Q } from "./bitcoin-C-TuHb-v.js";
5
+ import { n as re, l as ne, d as se, P as x, m as ie } from "./verifyScriptPathSchnorrSignature-D-fdi-sG.js";
6
+ import { R as q, a as X, N as M, b as D, c as G, d as ae, A as ue, C as z, e as _, f as ce, g as le, h as he, i as pe } from "./constants-CmDDuM3L.js";
7
+ import { D as Y } from "./fundPeginTransaction-CwhRbCQC.js";
8
8
  import { X as F } from "./validation-OSC0xTHB.js";
9
- const dt = (1n << 64n) - 1n;
10
- function ft(e, n) {
11
- if (!Array.isArray(e))
9
+ const de = (1n << 64n) - 1n;
10
+ function fe(t, n) {
11
+ if (!Array.isArray(t))
12
12
  throw new Error(
13
- `${n} must be an array of positive bigints (got ${typeof e}).`
13
+ `${n} must be an array of positive bigints (got ${typeof t}).`
14
14
  );
15
- if (e.length === 0)
15
+ if (t.length === 0)
16
16
  throw new Error(`${n} must not be empty.`);
17
- return e.forEach((t, i) => {
18
- if (typeof t != "bigint")
17
+ return t.forEach((e, i) => {
18
+ if (typeof e != "bigint")
19
19
  throw new Error(
20
- `${n}[${i}] must be a bigint (got ${typeof t}); refusing to feed it into satoshi math.`
20
+ `${n}[${i}] must be a bigint (got ${typeof e}); refusing to feed it into satoshi math.`
21
21
  );
22
- if (t <= 0n)
23
- throw new Error(`${n}[${i}] must be > 0 (got ${t}).`);
24
- if (t > dt)
22
+ if (e <= 0n)
23
+ throw new Error(`${n}[${i}] must be > 0 (got ${e}).`);
24
+ if (e > de)
25
25
  throw new Error(
26
- `${n}[${i}] must fit in a u64 (got ${t}); refusing to feed it into satoshi math.`
26
+ `${n}[${i}] must fit in a u64 (got ${e}); refusing to feed it into satoshi math.`
27
27
  );
28
- }), e;
28
+ }), t;
29
29
  }
30
- async function Ct(e) {
31
- const { WasmPrePeginTx: n } = await J(), { prePeginParams: t, fundedPrePeginTxHex: i, htlcVout: a, refundFee: c, hashlock: s } = e, r = rt(
32
- t.authAnchorHash
30
+ async function Re(t) {
31
+ const { WasmPrePeginTx: n } = await J(), { prePeginParams: e, fundedPrePeginTxHex: i, htlcVout: a, refundFee: c, hashlock: s } = t, r = re(
32
+ e.authAnchorHash
33
33
  ), o = new n(
34
- t.vaultCoreVersion,
35
- t.depositorPubkey,
36
- t.vaultProviderPubkey,
37
- t.vaultKeeperPubkeys,
38
- t.universalChallengerPubkeys,
39
- [...t.hashlocks],
34
+ e.vaultCoreVersion,
35
+ e.depositorPubkey,
36
+ e.vaultProviderPubkey,
37
+ e.vaultKeeperPubkeys,
38
+ e.universalChallengerPubkeys,
39
+ [...e.hashlocks],
40
40
  new BigUint64Array(
41
- ft(t.pegInAmounts, "pegInAmounts")
41
+ fe(e.pegInAmounts, "pegInAmounts")
42
42
  ),
43
- t.timelockRefund,
44
- t.feeRate,
45
- t.minPeginFeeRate,
46
- t.numLocalChallengers,
47
- t.councilQuorum,
48
- t.councilSize,
49
- t.network,
43
+ e.timelockRefund,
44
+ e.feeRate,
45
+ e.minPeginFeeRate,
46
+ e.numLocalChallengers,
47
+ e.councilQuorum,
48
+ e.councilSize,
49
+ e.network,
50
50
  r
51
51
  );
52
52
  let u = null;
53
53
  try {
54
- const p = o.getHtlcScriptPubKey(a).toLowerCase(), l = nt(t, s), d = l.scriptPubKey.toString("hex");
54
+ const p = o.getHtlcScriptPubKey(a).toLowerCase(), l = ne(e, s), d = l.scriptPubKey.toString("hex");
55
55
  if (p !== d)
56
56
  throw new Error(
57
57
  `WASM HTLC scriptPubKey ${p} does not match the independently derived scriptPubKey ${d}.`
58
58
  );
59
- const x = o.getHtlcValue(a);
59
+ const E = o.getHtlcValue(a);
60
60
  u = o.fromFundedTransaction(i);
61
61
  const w = u.buildRefundTx(c, a), T = i.startsWith("0x") ? i.slice(2) : i, v = b.fromHex(T), P = v.outs[a];
62
62
  if (!P)
63
63
  throw new Error(
64
64
  `HTLC output at vout ${a} not found in funded Pre-PegIn tx (tx has ${v.outs.length} outputs)`
65
65
  );
66
- const I = C(
66
+ const I = R(
67
67
  new Uint8Array(P.script)
68
68
  ).toLowerCase();
69
69
  if (I !== d)
70
70
  throw new Error(
71
- `HTLC scriptPubKey mismatch at vout ${a}: reconstructed template expects ${d}, funded tx carries ${I}. Refund refused — the (hashlocks, pegInAmounts) vector does not match the on-chain commitment.`
71
+ `HTLC scriptPubKey mismatch at vout ${a}: reconstructed template expects ${d}, funded tx carries ${I}. Refund refused — the rebuilt HTLC does not commit to the funded output. Check the participant keys first: the vault provider, vault keeper and universal challenger keys must be the operation keys at the vault's frozen epochs (readRefundPrePeginContext, or readStampedParticipantKeys), not roster, indexer or current keys. Then check the hashlock at this vout and timelockRefund, and that the funded transaction is this vault's Pre-PegIn (its txid must equal the vault's on-chain prePeginTxHash).`
72
72
  );
73
73
  const $ = BigInt(P.value);
74
- if ($ !== x)
74
+ if ($ !== E)
75
75
  throw new Error(
76
- `HTLC value mismatch at vout ${a}: reconstructed template expects ${x} sat, funded tx carries ${$} sat. Refund refused — the pegInAmounts vector does not match the on-chain commitment.`
76
+ `HTLC value mismatch at vout ${a}: reconstructed template expects ${E} sat, funded tx carries ${$} sat. Refund refused — the pegInAmounts vector does not match the on-chain commitment.`
77
77
  );
78
78
  const h = b.fromHex(w);
79
79
  if (h.version !== q)
@@ -88,22 +88,22 @@ async function Ct(e) {
88
88
  throw new Error(
89
89
  `Refund transaction must have exactly 1 input, got ${h.ins.length}`
90
90
  );
91
- const y = h.ins[0], O = v.getId(), L = C(
91
+ const y = h.ins[0], L = v.getId(), O = R(
92
92
  new Uint8Array(y.hash).slice().reverse()
93
93
  );
94
- if (L !== O)
94
+ if (O !== L)
95
95
  throw new Error(
96
- `Refund input does not reference the Pre-PegIn transaction. Expected ${O}, got ${L}`
96
+ `Refund input does not reference the Pre-PegIn transaction. Expected ${L}, got ${O}`
97
97
  );
98
98
  if (y.index !== a)
99
99
  throw new Error(
100
100
  `Refund input index ${y.index} does not match expected htlcVout ${a}`
101
101
  );
102
- if (y.sequence !== t.timelockRefund)
102
+ if (y.sequence !== e.timelockRefund)
103
103
  throw new Error(
104
- `Refund input sequence ${y.sequence} does not match timelockRefund ${t.timelockRefund}.`
104
+ `Refund input sequence ${y.sequence} does not match timelockRefund ${e.timelockRefund}.`
105
105
  );
106
- const S = new _();
106
+ const S = new H();
107
107
  if (S.setVersion(h.version), S.setLocktime(h.locktime), S.addInput({
108
108
  hash: y.hash,
109
109
  index: y.index,
@@ -119,114 +119,114 @@ async function Ct(e) {
119
119
  controlBlock: l.refundControlBlock
120
120
  }
121
121
  ],
122
- tapInternalKey: f.from(N),
122
+ tapInternalKey: f.from(k),
123
123
  tapMerkleRoot: l.tapMerkleRoot
124
124
  }), h.outs.length !== 1)
125
125
  throw new Error(
126
126
  `Refund transaction must have exactly 1 output, got ${h.outs.length}`
127
127
  );
128
- const R = h.outs[0], U = g(
129
- k(t.depositorPubkey)
130
- ).toLowerCase(), V = C(
131
- new Uint8Array(R.script)
128
+ const C = h.outs[0], U = g(
129
+ N(e.depositorPubkey)
130
+ ).toLowerCase(), K = R(
131
+ new Uint8Array(C.script)
132
132
  ).toLowerCase();
133
- if (V !== U)
133
+ if (K !== U)
134
134
  throw new Error(
135
- `Refund output scriptPubKey ${V} does not match the depositor's BIP-86 address ${U}. Refund refused — the reclaimed funds would not return to the depositor.`
135
+ `Refund output scriptPubKey ${K} does not match the depositor's BIP-86 address ${U}. Refund refused — the reclaimed funds would not return to the depositor.`
136
136
  );
137
- const K = $ - c;
138
- if (BigInt(R.value) !== K)
137
+ const V = $ - c;
138
+ if (BigInt(C.value) !== V)
139
139
  throw new Error(
140
- `Refund output value ${BigInt(R.value)} sat does not equal the HTLC value ${$} sat minus the requested fee ${c} sat (expected ${K} sat). Refund refused — the reclaimed amount would be burned as excess fee.`
140
+ `Refund output value ${BigInt(C.value)} sat does not equal the HTLC value ${$} sat minus the requested fee ${c} sat (expected ${V} sat). Refund refused — the reclaimed amount would be burned as excess fee.`
141
141
  );
142
142
  return S.addOutput({
143
- script: R.script,
144
- value: R.value
143
+ script: C.script,
144
+ value: C.value
145
145
  }), { psbtHex: S.toHex() };
146
146
  } finally {
147
147
  u == null || u.free(), o.free();
148
148
  }
149
149
  }
150
- const gt = 2, wt = 4294967293, mt = 214, $t = 299, Et = 4;
151
- function xt(e) {
152
- if (!Number.isInteger(e) || e < 1)
150
+ const ge = 2, we = 4294967293, me = 214, $e = 299, xe = 4;
151
+ function Ee(t) {
152
+ if (!Number.isInteger(t) || t < 1)
153
153
  throw new Error(
154
- `Reclaim input count must be a positive integer, got ${e}.`
154
+ `Reclaim input count must be a positive integer, got ${t}.`
155
155
  );
156
156
  return Math.ceil(
157
- (mt + $t * e) / Et
157
+ (me + $e * t) / xe
158
158
  );
159
159
  }
160
- function _t(e, n) {
161
- if (!Number.isFinite(e) || e <= 0)
160
+ function He(t, n) {
161
+ if (!Number.isFinite(t) || t <= 0)
162
162
  throw new Error(
163
- `Reclaim fee rate must be a positive number, got ${e}.`
163
+ `Reclaim fee rate must be a positive number, got ${t}.`
164
164
  );
165
- return BigInt(Math.ceil(e * xt(n)));
165
+ return BigInt(Math.ceil(t * Ee(n)));
166
166
  }
167
- function Ht(e) {
168
- const { depositorPubkey: n, inputs: t, feeSats: i } = e;
169
- if (t.length === 0)
167
+ function _e(t) {
168
+ const { depositorPubkey: n, inputs: e, feeSats: i } = t;
169
+ if (e.length === 0)
170
170
  throw new Error("Reclaim requires at least one input; got none.");
171
171
  if (i <= 0n)
172
172
  throw new Error(
173
173
  `Reclaim fee must be positive, got ${i} sat. Refusing to build a transaction that would not relay.`
174
174
  );
175
- const a = st(n), c = C(
175
+ const a = se(n), c = R(
176
176
  new Uint8Array(a.scriptPubKey)
177
- ).toLowerCase(), s = new _();
178
- s.setVersion(gt), s.setLocktime(0);
177
+ ).toLowerCase(), s = new H();
178
+ s.setVersion(ge), s.setLocktime(0);
179
179
  let r = 0n;
180
180
  const o = /* @__PURE__ */ new Set();
181
- if (t.forEach((l, d) => {
182
- const x = b.fromHex(
181
+ if (e.forEach((l, d) => {
182
+ const E = b.fromHex(
183
183
  g(l.depositorSignedPeginTxHex)
184
- ), w = x.getId(), T = x.outs[E];
184
+ ), w = E.getId(), T = E.outs[x];
185
185
  if (!T)
186
186
  throw new Error(
187
- `PegIn ${w} has no output at vout ${E} (tx has ${x.outs.length}); there is no depositor-claim reserve to reclaim.`
187
+ `PegIn ${w} has no output at vout ${x} (tx has ${E.outs.length}); there is no depositor-claim reserve to reclaim.`
188
188
  );
189
189
  const v = g(l.observed.txid).toLowerCase();
190
190
  if (v !== w)
191
191
  throw new Error(
192
192
  `Input ${d}: the observation is of ${v}, but this input spends PegIn ${w}. Reclaim refused — the reserve that was looked up is not the one being swept.`
193
193
  );
194
- if (l.observed.vout !== E)
194
+ if (l.observed.vout !== x)
195
195
  throw new Error(
196
- `Input ${d}: the observation is of vout ${l.observed.vout}, but the depositor-claim reserve is at vout ${E}. Reclaim refused.`
196
+ `Input ${d}: the observation is of vout ${l.observed.vout}, but the depositor-claim reserve is at vout ${x}. Reclaim refused.`
197
197
  );
198
- const P = C(
198
+ const P = R(
199
199
  new Uint8Array(T.script)
200
200
  ).toLowerCase();
201
201
  if (P !== c)
202
202
  throw new Error(
203
- `Input ${d}: PegIn ${w} vout ${E} pays ${P}, but the connected wallet's depositor-claim script is ${c}. Reclaim refused — this reserve belongs to a different wallet.`
203
+ `Input ${d}: PegIn ${w} vout ${x} pays ${P}, but the connected wallet's depositor-claim script is ${c}. Reclaim refused — this reserve belongs to a different wallet.`
204
204
  );
205
205
  const I = g(
206
206
  l.observed.scriptPubKey
207
207
  ).toLowerCase();
208
208
  if (I !== c)
209
209
  throw new Error(
210
- `Input ${d}: the observed UTXO ${w}:${E} pays ${I}, expected ${c}. Reclaim refused — chain state disagrees with the contract's PegIn.`
210
+ `Input ${d}: the observed UTXO ${w}:${x} pays ${I}, expected ${c}. Reclaim refused — chain state disagrees with the contract's PegIn.`
211
211
  );
212
212
  const $ = BigInt(T.value);
213
213
  if ($ !== l.observed.value)
214
214
  throw new Error(
215
- `Input ${d}: PegIn ${w} vout ${E} carries ${$} sat, but the observed UTXO carries ${l.observed.value} sat. Reclaim refused.`
215
+ `Input ${d}: PegIn ${w} vout ${x} carries ${$} sat, but the observed UTXO carries ${l.observed.value} sat. Reclaim refused.`
216
216
  );
217
217
  if ($ !== l.expectedValue)
218
218
  throw new Error(
219
- `Input ${d}: PegIn ${w} vout ${E} carries ${$} sat, but this vault's parameters compute a depositor-claim value of ${l.expectedValue} sat. Reclaim refused.`
219
+ `Input ${d}: PegIn ${w} vout ${x} carries ${$} sat, but this vault's parameters compute a depositor-claim value of ${l.expectedValue} sat. Reclaim refused.`
220
220
  );
221
- const h = `${w}:${E}`;
221
+ const h = `${w}:${x}`;
222
222
  if (o.has(h))
223
223
  throw new Error(
224
224
  `Input ${d} repeats outpoint ${h}, which is already being swept by an earlier input. Reclaim refused.`
225
225
  );
226
226
  o.add(h), r += $, s.addInput({
227
227
  hash: w,
228
- index: E,
229
- sequence: wt,
228
+ index: x,
229
+ sequence: we,
230
230
  witnessUtxo: { script: T.script, value: T.value },
231
231
  tapLeafScript: [
232
232
  {
@@ -242,28 +242,28 @@ function Ht(e) {
242
242
  `Reclaim fee ${i} sat is not less than the swept total ${r} sat. Refusing to build a transaction with no output.`
243
243
  );
244
244
  const u = r - i;
245
- if (u <= z)
245
+ if (u <= Y)
246
246
  throw new Error(
247
- `Reclaim output ${u} sat is at or below the dust threshold ${z} sat. The reserve is not at risk — it stays where it is until fee rates fall.`
247
+ `Reclaim output ${u} sat is at or below the dust threshold ${Y} sat. The reserve is not at risk — it stays where it is until fee rates fall.`
248
248
  );
249
249
  const p = g(
250
- k(n)
250
+ N(n)
251
251
  );
252
252
  return s.addOutput({
253
253
  script: f.from(m(p)),
254
254
  value: Number(u)
255
255
  }), { psbtHex: s.toHex(), outputValue: u, totalInputValue: r };
256
256
  }
257
- function Nt(e) {
258
- const { requestedPsbtHex: n, signaturesHex: t, signerXOnlyPubkeyHex: i } = e, a = g(i);
257
+ function ke(t) {
258
+ const { requestedPsbtHex: n, signaturesHex: e, signerXOnlyPubkeyHex: i } = t, a = g(i);
259
259
  if (a.length !== F)
260
260
  throw new Error(
261
261
  `Signer x-only pubkey must be ${F} hex chars (32 bytes), got ${a.length}.`
262
262
  );
263
- const c = f.from(m(a)), s = _.fromHex(n);
264
- if (t.length !== s.data.inputs.length)
263
+ const c = f.from(m(a)), s = H.fromHex(n);
264
+ if (e.length !== s.data.inputs.length)
265
265
  throw new Error(
266
- `Cannot finalize: got ${t.length} signature(s) for ${s.data.inputs.length} input(s). Every input must be signed — refusing to broadcast a partially signed transaction.`
266
+ `Cannot finalize: got ${e.length} signature(s) for ${s.data.inputs.length} input(s). Every input must be signed — refusing to broadcast a partially signed transaction.`
267
267
  );
268
268
  return s.data.inputs.forEach((r, o) => {
269
269
  if (r.tapKeySig)
@@ -280,7 +280,7 @@ function Nt(e) {
280
280
  throw new Error(
281
281
  `Cannot finalize: input ${o} tapLeafScript has leaf version 0x${p.leafVersion.toString(16)}, expected 0x${A.toString(16)}.`
282
282
  );
283
- const l = g(t[o]);
283
+ const l = g(e[o]);
284
284
  if (l.length !== B)
285
285
  throw new Error(
286
286
  `Signature for input ${o} must be ${B} hex chars (64 bytes), got ${l.length}.`
@@ -289,7 +289,7 @@ function Nt(e) {
289
289
  tapScriptSig: [
290
290
  {
291
291
  pubkey: c,
292
- leafHash: it(p.leafVersion, p.script),
292
+ leafHash: ie(p.leafVersion, p.script),
293
293
  signature: f.from(m(l))
294
294
  }
295
295
  ]
@@ -297,14 +297,14 @@ function Nt(e) {
297
297
  }), s.finalizeAllInputs(), s.extractTransaction().toHex();
298
298
  }
299
299
  const W = 65535;
300
- async function kt(e) {
301
- const n = g(e.noPayoutTxHex), t = b.fromHex(n), { noPayoutScript: i, noPayoutControlBlock: a } = await Z(
302
- e.connectorParams,
303
- e.challengerPubkey
304
- ), c = m(i), s = m(a), r = new _();
305
- r.setVersion(t.version), r.setLocktime(t.locktime);
306
- for (let o = 0; o < t.ins.length; o++) {
307
- const u = t.ins[o], p = e.prevouts[o];
300
+ async function Ne(t) {
301
+ const n = g(t.noPayoutTxHex), e = b.fromHex(n), { noPayoutScript: i, noPayoutControlBlock: a } = await Z(
302
+ t.connectorParams,
303
+ t.challengerPubkey
304
+ ), c = m(i), s = m(a), r = new H();
305
+ r.setVersion(e.version), r.setLocktime(e.locktime);
306
+ for (let o = 0; o < e.ins.length; o++) {
307
+ const u = e.ins[o], p = t.prevouts[o];
308
308
  if (!p)
309
309
  throw new Error(`Missing prevout data for input ${o}`);
310
310
  const l = {
@@ -322,24 +322,24 @@ async function kt(e) {
322
322
  script: f.from(c),
323
323
  controlBlock: f.from(s)
324
324
  }
325
- ], l.tapInternalKey = f.from(N)), r.addInput(l);
325
+ ], l.tapInternalKey = f.from(k)), r.addInput(l);
326
326
  }
327
- for (const o of t.outs)
327
+ for (const o of e.outs)
328
328
  r.addOutput({
329
329
  script: o.script,
330
330
  value: o.value
331
331
  });
332
332
  return r.toHex();
333
333
  }
334
- function Ot(e, n, t) {
335
- const i = b.fromHex(g(e));
334
+ function Le(t, n, e) {
335
+ const i = b.fromHex(g(t));
336
336
  if (i.outs.length !== 1)
337
337
  throw new Error(
338
338
  `NoPayout transaction must have exactly 1 output, got ${i.outs.length}`
339
339
  );
340
- const a = m(et(n)), { output: c } = j.p2tr({
340
+ const a = m(te(n)), { output: c } = j.p2tr({
341
341
  internalPubkey: f.from(a),
342
- network: ot(t)
342
+ network: oe(e)
343
343
  });
344
344
  if (!c)
345
345
  throw new Error(
@@ -350,11 +350,11 @@ function Ot(e, n, t) {
350
350
  "NoPayout transaction does not pay to the expected challenger BIP-86 P2TR address"
351
351
  );
352
352
  }
353
- function Lt(e) {
354
- const { noPayoutTx: n, timelockChallengeAssert: t } = e;
355
- if (!Number.isInteger(t) || t < 1 || t > W)
353
+ function Oe(t) {
354
+ const { noPayoutTx: n, timelockChallengeAssert: e } = t;
355
+ if (!Number.isInteger(e) || e < 1 || e > W)
356
356
  throw new Error(
357
- `timelockChallengeAssert must be an integer in 1..${W}, got ${t}`
357
+ `timelockChallengeAssert must be an integer in 1..${W}, got ${e}`
358
358
  );
359
359
  if (n.version !== M)
360
360
  throw new Error(
@@ -371,21 +371,21 @@ function Lt(e) {
371
371
  [
372
372
  {
373
373
  label: "Assert",
374
- txid: e.assertTxid,
375
- vout: ut,
376
- sequence: at
374
+ txid: t.assertTxid,
375
+ vout: ue,
376
+ sequence: ae
377
377
  },
378
378
  {
379
379
  label: "ChallengeAssertX",
380
- txid: e.challengeAssertXTxid,
381
- vout: Y,
382
- sequence: t
380
+ txid: t.challengeAssertXTxid,
381
+ vout: z,
382
+ sequence: e
383
383
  },
384
384
  {
385
385
  label: "ChallengeAssertY",
386
- txid: e.challengeAssertYTxid,
387
- vout: Y,
388
- sequence: t
386
+ txid: t.challengeAssertYTxid,
387
+ vout: z,
388
+ sequence: e
389
389
  }
390
390
  ].forEach((s, r) => {
391
391
  const o = n.ins[r], u = Q(o);
@@ -398,19 +398,19 @@ function Lt(e) {
398
398
  `NoPayout input ${r} (${s.label}) sequence must be ${s.sequence}, got ${o.sequence}`
399
399
  );
400
400
  });
401
- const a = e.prevoutValues.reduce((s, r) => s + r, 0), c = n.outs.reduce((s, r) => s + r.value, 0);
401
+ const a = t.prevoutValues.reduce((s, r) => s + r, 0), c = n.outs.reduce((s, r) => s + r.value, 0);
402
402
  if (c > a)
403
403
  throw new Error(
404
404
  `NoPayout output value ${c} exceeds its inputs (${a} sats)`
405
405
  );
406
406
  }
407
- async function Ut(e) {
407
+ async function Ue(t) {
408
408
  const n = b.fromHex(
409
- g(e.challengeAssertTxHex)
410
- ), t = b.fromHex(g(e.assertTxHex)), i = t.getId();
411
- if (e.connectorParamsPerInput.length !== n.ins.length)
409
+ g(t.challengeAssertTxHex)
410
+ ), e = b.fromHex(g(t.assertTxHex)), i = e.getId();
411
+ if (t.connectorParamsPerInput.length !== n.ins.length)
412
412
  throw new Error(
413
- `Expected ${n.ins.length} connector params, got ${e.connectorParamsPerInput.length}`
413
+ `Expected ${n.ins.length} connector params, got ${t.connectorParamsPerInput.length}`
414
414
  );
415
415
  const a = /* @__PURE__ */ new Set();
416
416
  for (let r = 0; r < n.ins.length; r++) {
@@ -419,7 +419,7 @@ async function Ut(e) {
419
419
  throw new Error(
420
420
  `ChallengeAssert input ${r} must spend an Assert output. Expected txid ${i}, got ${u}`
421
421
  );
422
- if (!t.outs[o.index])
422
+ if (!e.outs[o.index])
423
423
  throw new Error(
424
424
  `Assert output ${o.index} not found for ChallengeAssert input ${r} (txid: ${i})`
425
425
  );
@@ -430,11 +430,11 @@ async function Ut(e) {
430
430
  a.add(o.index);
431
431
  }
432
432
  const c = await Promise.all(
433
- e.connectorParamsPerInput.map((r) => tt(r))
434
- ), s = new _();
433
+ t.connectorParamsPerInput.map((r) => ee(r))
434
+ ), s = new H();
435
435
  s.setVersion(n.version), s.setLocktime(n.locktime);
436
436
  for (let r = 0; r < n.ins.length; r++) {
437
- const o = n.ins[r], u = t.outs[o.index], { script: p, controlBlock: l } = c[r], d = m(p), x = m(l);
437
+ const o = n.ins[r], u = e.outs[o.index], { script: p, controlBlock: l } = c[r], d = m(p), E = m(l);
438
438
  s.addInput({
439
439
  hash: o.hash,
440
440
  index: o.index,
@@ -447,10 +447,10 @@ async function Ut(e) {
447
447
  {
448
448
  leafVersion: A,
449
449
  script: f.from(d),
450
- controlBlock: f.from(x)
450
+ controlBlock: f.from(E)
451
451
  }
452
452
  ],
453
- tapInternalKey: f.from(N)
453
+ tapInternalKey: f.from(k)
454
454
  });
455
455
  }
456
456
  for (const r of n.outs)
@@ -460,50 +460,50 @@ async function Ut(e) {
460
460
  });
461
461
  return s.toHex();
462
462
  }
463
- function Vt(e) {
464
- const n = Pt(e).getId(), t = e.challengeAssertTx.getId();
465
- if (t !== n)
463
+ function Ke(t) {
464
+ const n = Pe(t).getId(), e = t.challengeAssertTx.getId();
465
+ if (e !== n)
466
466
  throw new Error(
467
- `ChallengeAssert${e.half} (challenger ${e.challengerPubkey}) is not the canonical transaction for this Assert: expected txid ${n}, got ${t}`
467
+ `ChallengeAssert${t.half} (challenger ${t.challengerPubkey}) is not the canonical transaction for this Assert: expected txid ${n}, got ${e}`
468
468
  );
469
469
  }
470
- function Pt(e) {
471
- const { assertTx: n, half: t, challengerIndex: i, challengerCount: a } = e;
470
+ function Pe(t) {
471
+ const { assertTx: n, half: e, challengerIndex: i, challengerCount: a } = t;
472
472
  if (!Number.isInteger(i) || i < 0 || i >= a)
473
473
  throw new Error(
474
- `ChallengeAssert${t} challenger index ${i} is outside 0..${a - 1}`
474
+ `ChallengeAssert${e} challenger index ${i} is outside 0..${a - 1}`
475
475
  );
476
- const c = pt + (t === "Y" ? a : 0) + i, s = n.outs[c];
476
+ const c = pe + (e === "Y" ? a : 0) + i, s = n.outs[c];
477
477
  if (!s)
478
478
  throw new Error(
479
- `Assert has no output ${c} for the ChallengeAssert${t} of challenger index ${i}`
479
+ `Assert has no output ${c} for the ChallengeAssert${e} of challenger index ${i}`
480
480
  );
481
- const r = s.value - H;
481
+ const r = s.value - _;
482
482
  if (r < 0)
483
483
  throw new Error(
484
- `Assert output ${c} (${s.value} sats) cannot fund the ${H}-sat ChallengeAssert${t} anchor`
484
+ `Assert output ${c} (${s.value} sats) cannot fund the ${_}-sat ChallengeAssert${e} anchor`
485
485
  );
486
486
  const o = new b();
487
- return o.version = ct, o.locktime = lt, o.addInput(n.getHash(), c, ht), o.addOutput(
488
- f.from(m(e.outputConnectorScriptPubKey)),
487
+ return o.version = ce, o.locktime = le, o.addInput(n.getHash(), c, he), o.addOutput(
488
+ f.from(m(t.outputConnectorScriptPubKey)),
489
489
  r
490
490
  ), o.addOutput(
491
491
  f.from(
492
- m(k(e.challengerPubkey))
492
+ m(N(t.challengerPubkey))
493
493
  ),
494
- H
494
+ _
495
495
  ), o;
496
496
  }
497
497
  export {
498
- Ht as a,
499
- Ct as b,
500
- kt as c,
501
- Ut as d,
502
- _t as e,
503
- Nt as f,
504
- Ot as g,
505
- Vt as h,
506
- Lt as i,
507
- xt as r
498
+ _e as a,
499
+ Re as b,
500
+ Ne as c,
501
+ Ue as d,
502
+ He as e,
503
+ ke as f,
504
+ Le as g,
505
+ Ke as h,
506
+ Oe as i,
507
+ Ee as r
508
508
  };
509
- //# sourceMappingURL=challengeAssert-B2otuf7y.js.map
509
+ //# sourceMappingURL=challengeAssert-pJP7MKhG.js.map