@babylonlabs-io/ts-sdk 0.73.0 → 0.74.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 (145) hide show
  1. package/dist/{PeginManager-E-UHA1un.cjs → PeginManager-DEByBX5R.cjs} +2 -2
  2. package/dist/{PeginManager-E-UHA1un.cjs.map → PeginManager-DEByBX5R.cjs.map} +1 -1
  3. package/dist/{PeginManager-C9RPOd0L.js → PeginManager-DNimKlmw.js} +11 -11
  4. package/dist/{PeginManager-C9RPOd0L.js.map → PeginManager-DNimKlmw.js.map} +1 -1
  5. package/dist/{bip322Verify-D6sBBUHE.js → bip322Verify-DSco3Yhl.js} +2 -2
  6. package/dist/{bip322Verify-D6sBBUHE.js.map → bip322Verify-DSco3Yhl.js.map} +1 -1
  7. package/dist/buildAndBroadcastReclaim-Cqc6Jiqk.cjs +2 -0
  8. package/dist/{buildAndBroadcastReclaim-U-PyFfDg.cjs.map → buildAndBroadcastReclaim-Cqc6Jiqk.cjs.map} +1 -1
  9. package/dist/{buildAndBroadcastReclaim-BXclIcu_.js → buildAndBroadcastReclaim-DCGcupg7.js} +6 -6
  10. package/dist/{buildAndBroadcastReclaim-BXclIcu_.js.map → buildAndBroadcastReclaim-DCGcupg7.js.map} +1 -1
  11. package/dist/constants-BTZdyOuk.cjs +2 -0
  12. package/dist/constants-BTZdyOuk.cjs.map +1 -0
  13. package/dist/constants-D5vORbQE.js +29 -0
  14. package/dist/constants-D5vORbQE.js.map +1 -0
  15. package/dist/fundPeginTransaction-54-Rwb2k.cjs +2 -0
  16. package/dist/fundPeginTransaction-54-Rwb2k.cjs.map +1 -0
  17. package/dist/fundPeginTransaction-CwhRbCQC.js +88 -0
  18. package/dist/fundPeginTransaction-CwhRbCQC.js.map +1 -0
  19. package/dist/{index-Cs7_Evtk.cjs → index-CK1Xvq4K.cjs} +2 -2
  20. package/dist/{index-Cs7_Evtk.cjs.map → index-CK1Xvq4K.cjs.map} +1 -1
  21. package/dist/{index-LgmJhdEN.js → index-DQ5bfoT3.js} +2 -2
  22. package/dist/{index-LgmJhdEN.js.map → index-DQ5bfoT3.js.map} +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +166 -161
  25. package/dist/noPayout-4RZB2g1e.cjs +2 -0
  26. package/dist/noPayout-4RZB2g1e.cjs.map +1 -0
  27. package/dist/noPayout-DiGr4eas.js +361 -0
  28. package/dist/noPayout-DiGr4eas.js.map +1 -0
  29. package/dist/{parseFundingOutpoints-B67CoXpF.js → parseFundingOutpoints-BQWvINfm.js} +2 -2
  30. package/dist/{parseFundingOutpoints-B67CoXpF.js.map → parseFundingOutpoints-BQWvINfm.js.map} +1 -1
  31. package/dist/pegin-registration-client-CXK3B_D1.js +882 -0
  32. package/dist/pegin-registration-client-CXK3B_D1.js.map +1 -0
  33. package/dist/pegin-registration-client-DLsMNm8Z.cjs +2 -0
  34. package/dist/pegin-registration-client-DLsMNm8Z.cjs.map +1 -0
  35. package/dist/{primeVpAuth-DBHohVKM.cjs → primeVpAuth-BOGKniTl.cjs} +2 -2
  36. package/dist/{primeVpAuth-DBHohVKM.cjs.map → primeVpAuth-BOGKniTl.cjs.map} +1 -1
  37. package/dist/{primeVpAuth-DvaD45q_.js → primeVpAuth-DdfHSC53.js} +4 -4
  38. package/dist/{primeVpAuth-DvaD45q_.js.map → primeVpAuth-DdfHSC53.js.map} +1 -1
  39. package/dist/{psbtInputFields-BIxBpPj2.cjs → psbtInputFields-BrV_ZfL_.cjs} +2 -2
  40. package/dist/{psbtInputFields-BIxBpPj2.cjs.map → psbtInputFields-BrV_ZfL_.cjs.map} +1 -1
  41. package/dist/{psbtInputFields-B3e05Xe6.js → psbtInputFields-CCVyaQMi.js} +2 -2
  42. package/dist/{psbtInputFields-B3e05Xe6.js.map → psbtInputFields-CCVyaQMi.js.map} +1 -1
  43. package/dist/secp256k1-D-H9jmd7.js +1766 -0
  44. package/dist/secp256k1-D-H9jmd7.js.map +1 -0
  45. package/dist/secp256k1-DDHQ1_za.cjs +2 -0
  46. package/dist/secp256k1-DDHQ1_za.cjs.map +1 -0
  47. package/dist/{sha2-CrlWM5S8.js → sha2-CLpQd0Rd.js} +8 -8
  48. package/dist/{sha2-CrlWM5S8.js.map → sha2-CLpQd0Rd.js.map} +1 -1
  49. package/dist/{signPsbtsWithFallback-DMSpIQWH.cjs → signPsbtsWithFallback-DtwzL5AA.cjs} +2 -2
  50. package/dist/{signPsbtsWithFallback-DMSpIQWH.cjs.map → signPsbtsWithFallback-DtwzL5AA.cjs.map} +1 -1
  51. package/dist/{signPsbtsWithFallback-0VBALhjS.js → signPsbtsWithFallback-f7QLp0q8.js} +4 -4
  52. package/dist/{signPsbtsWithFallback-0VBALhjS.js.map → signPsbtsWithFallback-f7QLp0q8.js.map} +1 -1
  53. package/dist/tbv/core/clients/eth/index.cjs +1 -1
  54. package/dist/tbv/core/clients/eth/index.js +3 -3
  55. package/dist/tbv/core/clients/index.cjs +1 -1
  56. package/dist/tbv/core/clients/index.js +5 -5
  57. package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
  58. package/dist/tbv/core/clients/vault-provider/status/index.js +1 -1
  59. package/dist/tbv/core/index.cjs +1 -1
  60. package/dist/tbv/core/index.d.ts +3 -0
  61. package/dist/tbv/core/index.d.ts.map +1 -1
  62. package/dist/tbv/core/index.js +159 -154
  63. package/dist/tbv/core/managers/index.cjs +1 -1
  64. package/dist/tbv/core/managers/index.js +2 -2
  65. package/dist/tbv/core/pegin-fingerprint/__tests__/peginFingerprint.golden.test.d.ts +62 -0
  66. package/dist/tbv/core/pegin-fingerprint/__tests__/peginFingerprint.golden.test.d.ts.map +1 -0
  67. package/dist/tbv/core/pegin-fingerprint/__tests__/peginFingerprint.test.d.ts +15 -0
  68. package/dist/tbv/core/pegin-fingerprint/__tests__/peginFingerprint.test.d.ts.map +1 -0
  69. package/dist/tbv/core/pegin-fingerprint/index.d.ts +14 -0
  70. package/dist/tbv/core/pegin-fingerprint/index.d.ts.map +1 -0
  71. package/dist/tbv/core/pegin-fingerprint/peginFingerprint.d.ts +141 -0
  72. package/dist/tbv/core/pegin-fingerprint/peginFingerprint.d.ts.map +1 -0
  73. package/dist/tbv/core/primitives/index.cjs +1 -1
  74. package/dist/tbv/core/primitives/index.js +4 -4
  75. package/dist/tbv/core/primitives/psbt/__tests__/assertPeginTxShape.test.d.ts +5 -6
  76. package/dist/tbv/core/primitives/psbt/__tests__/assertPeginTxShape.test.d.ts.map +1 -1
  77. package/dist/tbv/core/primitives/psbt/__tests__/assertWasmPeginSizing.test.d.ts +2 -2
  78. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts +36 -14
  79. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
  80. package/dist/tbv/core/primitives/psbt/constants.d.ts +39 -0
  81. package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
  82. package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
  83. package/dist/tbv/core/primitives/psbt/peginInput.d.ts.map +1 -1
  84. package/dist/tbv/core/primitives/psbt/refund.d.ts.map +1 -1
  85. package/dist/tbv/core/services/index.cjs +1 -1
  86. package/dist/tbv/core/services/index.js +2 -2
  87. package/dist/tbv/core/utils/fee/constants.d.ts +4 -4
  88. package/dist/tbv/core/utils/index.cjs +1 -1
  89. package/dist/tbv/core/utils/index.js +2 -2
  90. package/dist/tbv/core/utils/transaction/fundPeginTransaction.d.ts.map +1 -1
  91. package/dist/tbv/core/vault-secrets/index.js +1 -1
  92. package/dist/tbv/index.cjs +1 -1
  93. package/dist/tbv/index.js +159 -154
  94. package/dist/test/setup.browser.d.ts +2 -0
  95. package/dist/test/setup.browser.d.ts.map +1 -0
  96. package/dist/testing/index.js +1 -1
  97. package/dist/{toRefundInputs-BkcFhvDp.js → toRefundInputs-BNSXIymn.js} +238 -140
  98. package/dist/toRefundInputs-BNSXIymn.js.map +1 -0
  99. package/dist/toRefundInputs-meTyor7r.cjs +2 -0
  100. package/dist/toRefundInputs-meTyor7r.cjs.map +1 -0
  101. package/dist/{types-DSlcXtog.cjs → types-BzSOthHH.cjs} +2 -2
  102. package/dist/{types-DSlcXtog.cjs.map → types-BzSOthHH.cjs.map} +1 -1
  103. package/dist/{types-CPDLZm3l.js → types-C5DyrC8F.js} +2 -2
  104. package/dist/{types-CPDLZm3l.js.map → types-C5DyrC8F.js.map} +1 -1
  105. package/dist/verifyKeyPathSchnorrSignature-BVtNwgK6.js +360 -0
  106. package/dist/verifyKeyPathSchnorrSignature-BVtNwgK6.js.map +1 -0
  107. package/dist/verifyKeyPathSchnorrSignature-BjB8Znly.cjs +2 -0
  108. package/dist/verifyKeyPathSchnorrSignature-BjB8Znly.cjs.map +1 -0
  109. package/dist/verifyScriptPathSchnorrSignature-D_epga4j.js +1140 -0
  110. package/dist/verifyScriptPathSchnorrSignature-D_epga4j.js.map +1 -0
  111. package/dist/verifyScriptPathSchnorrSignature-DaRqvEgW.cjs +2 -0
  112. package/dist/verifyScriptPathSchnorrSignature-DaRqvEgW.cjs.map +1 -0
  113. package/package.json +5 -2
  114. package/dist/buildAndBroadcastReclaim-U-PyFfDg.cjs +0 -2
  115. package/dist/constants-Bh38W9mq.cjs +0 -2
  116. package/dist/constants-Bh38W9mq.cjs.map +0 -1
  117. package/dist/constants-CPzppOdq.js +0 -17
  118. package/dist/constants-CPzppOdq.js.map +0 -1
  119. package/dist/fundPeginTransaction-B2wyjqp0.js +0 -83
  120. package/dist/fundPeginTransaction-B2wyjqp0.js.map +0 -1
  121. package/dist/fundPeginTransaction-BLD8FRL9.cjs +0 -2
  122. package/dist/fundPeginTransaction-BLD8FRL9.cjs.map +0 -1
  123. package/dist/noPayout-DpGRzidi.js +0 -353
  124. package/dist/noPayout-DpGRzidi.js.map +0 -1
  125. package/dist/noPayout-zEifyecV.cjs +0 -2
  126. package/dist/noPayout-zEifyecV.cjs.map +0 -1
  127. package/dist/pegin-registration-client-6vLk2itL.cjs +0 -2
  128. package/dist/pegin-registration-client-6vLk2itL.cjs.map +0 -1
  129. package/dist/pegin-registration-client-BdRiR8br.js +0 -2635
  130. package/dist/pegin-registration-client-BdRiR8br.js.map +0 -1
  131. package/dist/toRefundInputs-BkcFhvDp.js.map +0 -1
  132. package/dist/toRefundInputs-CatCKniS.cjs +0 -2
  133. package/dist/toRefundInputs-CatCKniS.cjs.map +0 -1
  134. package/dist/vaultCoreVersion-DYfw3qed.cjs +0 -2
  135. package/dist/vaultCoreVersion-DYfw3qed.cjs.map +0 -1
  136. package/dist/vaultCoreVersion-D_fP9P3C.js +0 -10
  137. package/dist/vaultCoreVersion-D_fP9P3C.js.map +0 -1
  138. package/dist/verifyKeyPathSchnorrSignature-BedSbH2D.cjs +0 -2
  139. package/dist/verifyKeyPathSchnorrSignature-BedSbH2D.cjs.map +0 -1
  140. package/dist/verifyKeyPathSchnorrSignature-BrgUJmV0.js +0 -372
  141. package/dist/verifyKeyPathSchnorrSignature-BrgUJmV0.js.map +0 -1
  142. package/dist/verifyScriptPathSchnorrSignature-BfNUSgA7.cjs +0 -2
  143. package/dist/verifyScriptPathSchnorrSignature-BfNUSgA7.cjs.map +0 -1
  144. package/dist/verifyScriptPathSchnorrSignature-Ciq_xZhw.js +0 -951
  145. package/dist/verifyScriptPathSchnorrSignature-Ciq_xZhw.js.map +0 -1
@@ -1,270 +1,275 @@
1
- import { P as s, h as t, i as r, j as i, f as o, b as n, a as P, c as p, k as c, d as u, e as E, g as d } from "../../verifyScriptPathSchnorrSignature-Ciq_xZhw.js";
2
- import { a as A } from "../../vaultCoreVersion-D_fP9P3C.js";
3
- import { computeMinClaimValue as _, computeMinPeginFee as g, deriveVaultId as T, expandAuthAnchor as m, expandHashlockSecret as S, expandWotsSeed as C, peginP2aAnchorOutput as O, supportedTxGraphVersions as I, validatePeginP2aAnchor as f } from "./wasm/index.js";
4
- import { a as b, c as V, b as h, e as v, f as N } from "../../verifyKeyPathSchnorrSignature-BrgUJmV0.js";
5
- import { c as F, a as y, b as D, e as U, f as B, r as H } from "../../noPayout-DpGRzidi.js";
1
+ import { P as s, h as t, i as r, j as i, f as o, b as n, a as P, c as p, k as E, d as c, e as u, g as d } from "../../verifyScriptPathSchnorrSignature-D_epga4j.js";
2
+ import { a as R } from "../../secp256k1-D-H9jmd7.js";
3
+ import { computeMinClaimValue as _, computeMinPeginFee as g, deriveVaultId as T, expandAuthAnchor as m, expandHashlockSecret as S, expandWotsSeed as I, peginP2aAnchorOutput as C, supportedTxGraphVersions as O, validatePeginP2aAnchor as f } from "./wasm/index.js";
4
+ import { a as N, c as b, b as V, e as h, f as v } from "../../verifyKeyPathSchnorrSignature-BVtNwgK6.js";
5
+ import { c as F, a as D, b as y, e as U, f as B, r as H } from "../../noPayout-DiGr4eas.js";
6
6
  import { b as K } from "../../challengeAssert-Cp_GeRg8.js";
7
- import { c as k, d as W, a as w, b as G, e as Y, f as j, k as z, g as J, h as Z, i as q, j as Q, p as $, s as aa, t as ea, u as sa, v as ta } from "../../bitcoin-C-TuHb-v.js";
7
+ import { c as k, d as G, a as W, b as w, e as Y, f as j, k as z, g as J, h as Z, i as q, j as Q, p as $, s as aa, t as ea, u as sa, v as ta } from "../../bitcoin-C-TuHb-v.js";
8
8
  import { c as ia } from "../../abortSignals-BPpAUL1Z.js";
9
9
  import { c as na, a as Pa } from "../../signing-Cm-McVR2.js";
10
- import { B as ca, C as ua, H as Ea, K as da, M as la, T as Aa, X as Ra } from "../../validation-OSC0xTHB.js";
10
+ import { B as Ea, C as ca, H as ua, K as da, M as la, T as Ra, X as Aa } from "../../validation-OSC0xTHB.js";
11
11
  import { waitForTransactionReceiptSmartAware as ga } from "./utils/eth/index.js";
12
- import { P as ma, b as Sa, c as Ca, d as Oa, a as Ia, e as fa } from "../../PeginManager-C9RPOd0L.js";
13
- import { P as ba, c as Va, f as ha, r as va, s as Na, v as Ma } from "../../signPsbtsWithFallback-0VBALhjS.js";
14
- import { MEMPOOL_API_URLS as ya, getAddressTxs as Da, getAddressUtxos as Ua, getMempoolApiUrl as Ba, getNetworkFees as Ha, getOutspend as La, getTipHeight as Ka, getTxHex as Xa, getTxInfo as ka, getUtxoInfo as Wa, pushTx as wa } from "./clients/mempool/index.js";
15
- import { O as Ya, V as ja, a as za, b as Ja, c as Za, r as qa } from "../../types-CPDLZm3l.js";
12
+ import { P as ma, b as Sa, c as Ia, d as Ca, a as Oa, e as fa } from "../../PeginManager-DNimKlmw.js";
13
+ import { P as Na, c as ba, f as Va, r as ha, s as va, v as Ma } from "../../signPsbtsWithFallback-f7QLp0q8.js";
14
+ import { MEMPOOL_API_URLS as Da, getAddressTxs as ya, getAddressUtxos as Ua, getMempoolApiUrl as Ba, getNetworkFees as Ha, getOutspend as La, getTipHeight as Ka, getTxHex as Xa, getTxInfo as ka, getUtxoInfo as Ga, pushTx as Wa } from "./clients/mempool/index.js";
15
+ import { O as Ya, V as ja, a as za, b as Ja, c as Za, r as qa } from "../../types-C5DyrC8F.js";
16
16
  import { a as $a } from "../../onChainBtcPubkey-C-6UWpD8.js";
17
- import { C as ee, M as se, V as te, c as re, e as ie, d as oe, v as ne, a as Pe, b as pe } from "../../pegin-registration-client-BdRiR8br.js";
18
- import { ApplicationRegistryABI as ue, ProtocolParamsABI as Ee } from "./contracts/index.js";
17
+ import { C as ee, M as se, V as te, c as re, e as ie, d as oe, v as ne, a as Pe, b as pe } from "../../pegin-registration-client-CXK3B_D1.js";
18
+ import { ApplicationRegistryABI as ce, ProtocolParamsABI as ue } from "./contracts/index.js";
19
19
  import { B as le } from "../../BTCVaultRegistry.abi-CJwWI2EO.js";
20
- import { B as Re, C as _e, e as ge, g as Te, h as me, i as Se } from "../../BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js";
21
- import { V as Oe, b as Ie, a as fe, d as xe, f as be, p as Ve } from "../../parseFundingOutpoints-B67CoXpF.js";
22
- import { B as ve, a as Ne, c as Me, b as Fe, d as ye, g as De, h as Ue, f as Be, s as He, e as Le } from "../../psbtInputFields-B3e05Xe6.js";
23
- import { B as Xe, D as ke, L as We, M as we, c as Ge, P as Ye, b as je, a as ze, S as Je, T as Ze, W as qe, f as Qe, d as $e, p as as, r as es } from "../../fundPeginTransaction-B2wyjqp0.js";
20
+ import { B as Ae, C as _e, e as ge, g as Te, h as me, i as Se } from "../../BTCVaultRegistryKeyEpochs.abi-D8cIbMtH.js";
21
+ import { V as Ce, b as Oe, a as fe, d as xe, f as Ne, p as be } from "../../parseFundingOutpoints-BQWvINfm.js";
22
+ import { B as he, a as ve, c as Me, b as Fe, d as De, g as ye, h as Ue, f as Be, s as He, e as Le } from "../../psbtInputFields-CCVyaQMi.js";
23
+ import { B as Xe, D as ke, L as Ge, M as We, c as we, P as Ye, b as je, a as ze, S as Je, T as Ze, W as qe, f as Qe, d as $e, p as as, r as es } from "../../fundPeginTransaction-CwhRbCQC.js";
24
24
  import { U as ts, a as rs, e as is, f as os, v as ns } from "../../reservation-Cj9F0rP9.js";
25
- import { V as ps, a as cs, b as us, v as Es } from "../../index-LgmJhdEN.js";
26
- import { A as ls, D as As, J as Rs, a as _s, b as gs, d as Ts, P as ms, R as Ss, e as Cs, c as Os, V as Is, i as fs } from "../../json-rpc-client-DuUARJvV.js";
27
- import { S as bs, V as Vs, c as hs, p as vs, v as Ns, a as Ms } from "../../primeVpAuth-DvaD45q_.js";
28
- import { D as ys, a as Ds, h as Us, j as Bs, P as Hs, k as Ls, U as Ks, V as Xs, c as ks, d as Ws, f as ws, e as Gs, b as Ys, i as js, r as zs, g as Js, t as Zs } from "../../toRefundInputs-BkcFhvDp.js";
29
- import { H as Qs, E as $s, P as at, o as et, c as st, d as tt, S as rt, T as it, U as ot, V as nt, K as Pt, L as pt, M as ct, N as ut, O as Et, R as dt, a as lt, b as At, y as Rt, Q as _t, I as gt, J as Tt, g as mt, z as St, p as Ct, i as Ot, e as It, G as ft, F as xt, t as bt, A as Vt, B as ht, C as vt, D as Nt, r as Mt, s as Ft, f as yt, h as Dt, j as Ut, v as Bt, k as Ht, l as Lt, m as Kt, n as Xt, q as kt, u as Wt, w as wt, x as Gt } from "../../buildAndBroadcastReclaim-BXclIcu_.js";
30
- import { C as jt, P as zt, c as Jt, g as Zt, i as qt } from "../../peginState-CxDiaKuk.js";
25
+ import { V as ps, a as Es, b as cs, v as us } from "../../index-DQ5bfoT3.js";
26
+ import { A as ls, D as Rs, J as As, a as _s, b as gs, d as Ts, P as ms, R as Ss, e as Is, c as Cs, V as Os, i as fs } from "../../json-rpc-client-DuUARJvV.js";
27
+ import { S as Ns, V as bs, c as Vs, p as hs, v as vs, a as Ms } from "../../primeVpAuth-DdfHSC53.js";
28
+ import { D as Ds, d as ys, P as Us, a as Bs, b as Hs, n as Ls, o as Ks, m as Xs, p as ks, U as Gs, V as Ws, h as ws, c as Ys, g as js, k as zs, j as Js, e as Zs, f as qs, i as Qs, r as $s, l as at, t as et } from "../../toRefundInputs-BNSXIymn.js";
29
+ import { H as tt, E as rt, P as it, o as ot, c as nt, d as Pt, S as pt, T as Et, U as ct, V as ut, K as dt, L as lt, M as Rt, N as At, O as _t, R as gt, a as Tt, b as mt, y as St, Q as It, I as Ct, J as Ot, g as ft, z as xt, p as Nt, i as bt, e as Vt, G as ht, F as vt, t as Mt, A as Ft, B as Dt, C as yt, D as Ut, r as Bt, s as Ht, f as Lt, h as Kt, j as Xt, v as kt, k as Gt, l as Wt, m as wt, n as Yt, q as jt, u as zt, w as Jt, x as Zt } from "../../buildAndBroadcastReclaim-DCGcupg7.js";
30
+ import { C as Qt, P as $t, c as ar, g as er, i as sr } from "../../peginState-CxDiaKuk.js";
31
31
  export {
32
32
  ls as AUTH_REJECTED_RPC_CODE,
33
- ue as ApplicationRegistryABI,
34
- Qs as BIP68NotMatureError,
35
- ca as BITCOIN_ADDRESS_RE,
33
+ ce as ApplicationRegistryABI,
34
+ tt as BIP68NotMatureError,
35
+ Ea as BITCOIN_ADDRESS_RE,
36
36
  le as BTCVaultRegistryABI,
37
- Re as BTCVaultRegistryKeyEpochsABI,
37
+ Ae as BTCVaultRegistryKeyEpochsABI,
38
38
  Xe as BTC_DUST_SAT,
39
- ve as BitcoinScriptType,
39
+ he as BitcoinScriptType,
40
40
  ee as COMMISSION_BPS_HEADROOM,
41
- ua as COMPRESSED_PUBKEY_HEX_LEN,
41
+ ca as COMPRESSED_PUBKEY_HEX_LEN,
42
42
  _e as CONTRACT_ERRORS,
43
- $s as ClaimerPegoutStatusValue,
44
- jt as ContractStatus,
45
- ys as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
43
+ rt as ClaimerPegoutStatusValue,
44
+ Qt as ContractStatus,
45
+ Ds as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
46
46
  ke as DUST_THRESHOLD,
47
- As as DaemonStatus,
48
- Ds as DepositTermsRejectedError,
49
- Ea as HEX_RE,
50
- Rs as JSON_RPC_ERROR_CODES,
47
+ Rs as DaemonStatus,
48
+ ys as DepositTermsRejectedError,
49
+ ua as HEX_RE,
50
+ As as JSON_RPC_ERROR_CODES,
51
51
  _s as JsonRpcClient,
52
52
  gs as JsonRpcError,
53
53
  da as KNOWN_SCRIPT_PREFIXES,
54
- We as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
54
+ Ge as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
55
55
  se as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
56
- we as MAX_NON_LEGACY_OUTPUT_SIZE,
56
+ We as MAX_NON_LEGACY_OUTPUT_SIZE,
57
57
  la as MAX_REASONABLE_FEE_SATS,
58
- Ge as MAX_REASONABLE_PEGIN_VBYTES,
59
- ya as MEMPOOL_API_URLS,
58
+ we as MAX_REASONABLE_PEGIN_VBYTES,
59
+ Da as MEMPOOL_API_URLS,
60
60
  Ya as OnChainBtcVaultStatus,
61
61
  Ye as P2TR_INPUT_SIZE,
62
62
  je as PEGIN_AUTH_ANCHOR_OUTPUTS,
63
63
  s as PEGIN_DEPOSITOR_CLAIM_VOUT,
64
- at as PEGIN_ETH_CONFIRMATIONS,
64
+ it as PEGIN_ETH_CONFIRMATIONS,
65
+ Us as PEGIN_FINGERPRINT_DOMAIN,
66
+ Bs as PEGIN_FINGERPRINT_DOMAIN_PREIMAGE,
65
67
  ze as PEGIN_FIXED_OUTPUTS,
66
68
  Ts as POST_WOTS_STATUSES,
67
69
  ms as PRE_DEPOSITOR_SIGNATURES_STATES,
68
- et as ParticipantKeyDriftError,
69
- ba as PayoutManager,
70
- zt as PeginAction,
70
+ ot as ParticipantKeyDriftError,
71
+ Na as PayoutManager,
72
+ $t as PeginAction,
73
+ Hs as PeginFingerprintInputError,
71
74
  ma as PeginManager,
72
- Us as PeginParamsAmbiguousError,
73
- Bs as PeginParamsIncompleteSpaceError,
74
- Hs as PeginParamsNotFoundError,
75
- st as PeginRegistrationMissingError,
76
- tt as PeginRegistrationNotFinalError,
77
- Ls as PeginSizingIntegrityError,
78
- Ee as ProtocolParamsABI,
75
+ Ls as PeginParamsAmbiguousError,
76
+ Ks as PeginParamsIncompleteSpaceError,
77
+ Xs as PeginParamsNotFoundError,
78
+ nt as PeginRegistrationMissingError,
79
+ Pt as PeginRegistrationNotFinalError,
80
+ ks as PeginSizingIntegrityError,
81
+ ue as ProtocolParamsABI,
79
82
  t as PsbtSubstitutionError,
80
- rt as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
81
- it as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
82
- ot as RECLAIM_MAX_FEE_RATE_SATS_VB,
83
- nt as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
84
- Pt as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
85
- pt as REFUND_MAX_FEE_FRACTION_NUMERATOR,
86
- ct as REFUND_MAX_FEE_RATE_SATS_VB,
87
- ut as REFUND_VSIZE,
88
- Et as ReclaimUneconomicalError,
89
- dt as RegisteredVaultVersionMismatchError,
83
+ pt as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
84
+ Et as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
85
+ ct as RECLAIM_MAX_FEE_RATE_SATS_VB,
86
+ ut as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
87
+ dt as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
88
+ lt as REFUND_MAX_FEE_FRACTION_NUMERATOR,
89
+ Rt as REFUND_MAX_FEE_RATE_SATS_VB,
90
+ At as REFUND_VSIZE,
91
+ _t as ReclaimUneconomicalError,
92
+ gt as RegisteredVaultVersionMismatchError,
90
93
  Ss as RpcErrorCode,
91
94
  Je as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
92
- bs as ServerIdentityError,
93
- Aa as TXID_RE,
95
+ Ns as ServerIdentityError,
96
+ Ra as TXID_RE,
94
97
  Ze as TX_BUFFER_SIZE_OVERHEAD,
95
- Ks as UnanchoredPrePeginError,
98
+ Gs as UnanchoredPrePeginError,
96
99
  ts as UtxoNotAvailableError,
97
- Oe as VAULT_APP_NAME,
98
- Cs as VP_BATCH_MAX_SIZE,
99
- Os as VP_TERMINAL_FAILURE_STATUSES,
100
- Is as VP_TRANSIENT_STATUSES,
100
+ Ce as VAULT_APP_NAME,
101
+ Is as VP_BATCH_MAX_SIZE,
102
+ Cs as VP_TERMINAL_FAILURE_STATUSES,
103
+ Os as VP_TRANSIENT_STATUSES,
101
104
  ps as VaultProviderRpcClient,
102
- Xs as VaultRootMismatchError,
105
+ Ws as VaultRootMismatchError,
103
106
  ja as ViemOperationKeyReader,
104
107
  te as ViemPeginRegistrationClient,
105
108
  za as ViemProtocolParamsReader,
106
109
  Ja as ViemUniversalChallengerReader,
107
110
  Za as ViemVaultKeeperReader,
108
111
  re as ViemVaultRegistryReader,
109
- cs as VpResponseValidationError,
110
- Vs as VpTokenRegistry,
112
+ Es as VpResponseValidationError,
113
+ bs as VpTokenRegistry,
111
114
  qe as WALLET_RELAY_FEE_RATE_THRESHOLD,
112
- Ra as X_ONLY_PUBKEY_HEX_LEN,
113
- lt as activateVault,
114
- At as activateVaultAndRedeem,
115
- Ne as applyChangeOutputPolicy,
116
- b as assertKeyPathSchnorrSignature,
115
+ Aa as X_ONLY_PUBKEY_HEX_LEN,
116
+ Tt as activateVault,
117
+ mt as activateVaultAndRedeem,
118
+ ve as applyChangeOutputPolicy,
119
+ N as assertKeyPathSchnorrSignature,
117
120
  $a as assertOnChainBtcPubkey,
118
121
  r as assertPsbtUnsignedTxMatches,
119
- V as assertReturnedKeyPathSignatures,
122
+ b as assertReturnedKeyPathSignatures,
120
123
  i as assertScriptPathSchnorrSignature,
121
124
  rs as assertUtxosAvailable,
122
- A as assertValidVaultCoreVersion,
123
- Rt as assertVaultProviderHintAccepted,
124
- us as batchPollByProvider,
125
- _t as buildAndBroadcastReclaim,
126
- gt as buildAndBroadcastRefund,
125
+ R as assertValidVaultCoreVersion,
126
+ St as assertVaultProviderHintAccepted,
127
+ cs as batchPollByProvider,
128
+ It as buildAndBroadcastReclaim,
129
+ Ct as buildAndBroadcastRefund,
127
130
  K as buildChallengeAssertPsbt,
128
131
  Sa as buildDepositTerms,
129
- Ie as buildFundingOutpointsCommitment,
132
+ Oe as buildFundingOutpointsCommitment,
130
133
  F as buildNoPayoutPsbt,
131
134
  o as buildPayoutPsbt,
132
- h as buildPeginInputPsbt,
133
- ks as buildPeginParamsCandidates,
135
+ V as buildPeginInputPsbt,
136
+ ws as buildPeginParamsCandidates,
134
137
  n as buildPeginTxFromFundedPrePegin,
135
138
  P as buildPrePeginPsbt,
136
- y as buildReclaimPsbt,
137
- D as buildRefundPsbt,
139
+ D as buildReclaimPsbt,
140
+ y as buildRefundPsbt,
138
141
  fe as buildVaultContext,
139
142
  na as calculateBtcTxHash,
140
- Jt as canPerformAction,
143
+ ar as canPerformAction,
141
144
  k as canonicalizeBtcPubkey,
142
145
  ie as capMaxAcceptableCommissionBps,
143
146
  ia as combineAbortSignals,
144
147
  Me as computeChangeOutputFeeSats,
145
- Va as computeHashlock,
148
+ ba as computeHashlock,
146
149
  Fe as computeMaxDeposit,
147
150
  _ as computeMinClaimValue,
148
151
  g as computeMinPeginFee,
149
152
  p as computeNumLocalChallengers,
150
- ye as computePeginBaseFeeSats,
151
- Ca as computeWotsBlockPublicKeysHash,
152
- hs as createAuthenticatedVpClient,
153
- c as createPayoutScript,
153
+ De as computePeginBaseFeeSats,
154
+ Ys as computePeginFingerprint,
155
+ Ia as computeWotsBlockPublicKeysHash,
156
+ Vs as createAuthenticatedVpClient,
157
+ E as createPayoutScript,
154
158
  Pa as createTaprootScriptPathSignOptions,
155
- W as deriveBip86ScriptPubKeyHex,
156
- u as deriveDepositorClaimDescriptor,
157
- E as deriveDepositorClaimScriptPubKey,
158
- Ws as deriveHashlocksFromPrePegin,
159
- w as deriveNativeSegwitAddress,
159
+ G as deriveBip86ScriptPubKeyHex,
160
+ c as deriveDepositorClaimDescriptor,
161
+ u as deriveDepositorClaimScriptPubKey,
162
+ js as deriveHashlocksFromPrePegin,
163
+ W as deriveNativeSegwitAddress,
160
164
  oe as derivePeginVaultId,
161
- G as deriveTaprootAddress,
165
+ w as deriveTaprootAddress,
162
166
  T as deriveVaultId,
163
167
  xe as deriveVaultRoot,
164
- Oa as deriveWotsBlocksFromSeed,
165
- ws as describePeginParamsCandidate,
166
- Gs as describeUnresolvedVersion,
168
+ Ca as deriveWotsBlocksFromSeed,
169
+ zs as describePeginParamsCandidate,
170
+ Js as describeUnresolvedVersion,
171
+ Zs as encodePeginFingerprintPreimage,
167
172
  Y as ensureHexPrefix,
168
- Ia as ensurePrePeginTermsApproval,
173
+ Oa as ensurePrePeginTermsApproval,
169
174
  U as estimateReclaimFeeSats,
170
- Tt as estimateRefundFeeSats,
175
+ Ot as estimateRefundFeeSats,
171
176
  fa as estimateSubmitPeginRequestBatchGas,
172
177
  m as expandAuthAnchor,
173
178
  S as expandHashlockSecret,
174
- C as expandWotsSeed,
179
+ I as expandWotsSeed,
175
180
  ge as extractErrorData,
176
181
  is as extractInputsFromTransaction,
177
182
  d as extractPayoutSignature,
178
- v as extractPeginInputSignature,
179
- N as finalizePeginInputPsbt,
183
+ h as extractPeginInputSignature,
184
+ v as finalizePeginInputPsbt,
180
185
  B as finalizeScriptPathWithSignatures,
181
186
  os as findOverlappingPendingVaults,
182
187
  j as formatSatoshisToBtc,
183
- ha as forwardDepositApproval,
184
- be as forwardDeriveContextHash,
188
+ Va as forwardDepositApproval,
189
+ Ne as forwardDeriveContextHash,
185
190
  Qe as fundPeginTransaction,
186
- Da as getAddressTxs,
191
+ ya as getAddressTxs,
187
192
  Ua as getAddressUtxos,
188
193
  Te as getContractErrorMessage,
189
- De as getDustThreshold,
194
+ ye as getDustThreshold,
190
195
  Ba as getMempoolApiUrl,
191
196
  z as getNetwork,
192
197
  Ha as getNetworkFees,
193
198
  La as getOutspend,
194
- Zt as getPeginProtocolState,
199
+ er as getPeginProtocolState,
195
200
  Ue as getPsbtInputFields,
196
201
  Be as getScriptType,
197
202
  J as getSortedXOnlyPubkeys,
198
203
  Ka as getTipHeight,
199
204
  Xa as getTxHex,
200
205
  ka as getTxInfo,
201
- Wa as getUtxoInfo,
206
+ Ga as getUtxoInfo,
202
207
  me as handleContractError,
203
208
  Z as hexToUint8Array,
204
- qt as isActivationDeadlinePassedOnChain,
209
+ sr as isActivationDeadlinePassedOnChain,
205
210
  q as isAddressFromPublicKey,
206
211
  fs as isAuthRejectedError,
207
- mt as isDepositAmountValid,
208
- Ys as isDepositTermsRejectedError,
209
- St as isHintAccepted,
212
+ ft as isDepositAmountValid,
213
+ qs as isDepositTermsRejectedError,
214
+ xt as isHintAccepted,
210
215
  Se as isKnownContractError,
211
- Ct as isParticipantKeyDriftError,
212
- Ot as isPeginRegistrationMissingError,
213
- It as isPeginRegistrationNotFinalError,
214
- ft as isPegoutTerminalStatus,
215
- xt as isRecognizedPegoutStatus,
216
- bt as isRegisteredVaultVersionMismatchError,
216
+ Nt as isParticipantKeyDriftError,
217
+ bt as isPeginRegistrationMissingError,
218
+ Vt as isPeginRegistrationNotFinalError,
219
+ ht as isPegoutTerminalStatus,
220
+ vt as isRecognizedPegoutStatus,
221
+ Mt as isRegisteredVaultVersionMismatchError,
217
222
  Q as isValidHex,
218
- js as isWotsMismatchError,
219
- Vt as matchKeyHint,
220
- ht as matchKeySetHint,
221
- Ve as parseFundingOutpointsFromTx,
223
+ Qs as isWotsMismatchError,
224
+ Ft as matchKeyHint,
225
+ Dt as matchKeySetHint,
226
+ be as parseFundingOutpointsFromTx,
222
227
  $e as parseUnfundedWasmTransaction,
223
228
  as as peginOutputCount,
224
- O as peginP2aAnchorOutput,
225
- vs as primeVpTokenRegistry,
229
+ C as peginP2aAnchorOutput,
230
+ hs as primeVpTokenRegistry,
226
231
  $ as processPublicKeyToXOnly,
227
- wa as pushTx,
232
+ Wa as pushTx,
228
233
  es as rateBasedTxBufferFee,
229
- zs as rebuildDepositTermsCore,
234
+ $s as rebuildDepositTermsCore,
230
235
  H as reclaimVsize,
231
- Js as reconstructPeginParams,
232
- va as requireChangeAddress,
233
- vt as resolveCurrentParticipantKeys,
234
- Nt as resolveParticipantKeysAtEpochs,
236
+ at as reconstructPeginParams,
237
+ ha as requireChangeAddress,
238
+ yt as resolveCurrentParticipantKeys,
239
+ Ut as resolveParticipantKeysAtEpochs,
235
240
  qa as resolveProtocolAddresses,
236
- Mt as runDepositorPresignFlow,
241
+ Bt as runDepositorPresignFlow,
237
242
  He as selectUtxosForPegin,
238
243
  Le as shouldAddChangeOutput,
239
- Ft as signDepositorGraph,
244
+ Ht as signDepositorGraph,
240
245
  aa as stripHexPrefix,
241
- yt as submitWotsPublicKey,
242
- I as supportedTxGraphVersions,
243
- Na as supportsDepositApproval,
244
- Zs as toRefundInputs,
246
+ Lt as submitWotsPublicKey,
247
+ O as supportedTxGraphVersions,
248
+ va as supportsDepositApproval,
249
+ et as toRefundInputs,
245
250
  ea as toXOnly,
246
251
  sa as uint8ArrayToHex,
247
- Dt as validateDepositAmount,
248
- Ut as validateMultiVaultDepositInputs,
252
+ Kt as validateDepositAmount,
253
+ Xt as validateMultiVaultDepositInputs,
249
254
  ne as validateOffchainParams,
250
- Bt as validateOnChainParticipantKeys,
255
+ kt as validateOnChainParticipantKeys,
251
256
  Pe as validatePegInConfiguration,
252
257
  f as validatePeginP2aAnchor,
253
- Ht as validateProviderSelection,
254
- Lt as validateRemainingCapacity,
255
- Es as validateRequestDepositorClaimerArtifactsResponse,
258
+ Gt as validateProviderSelection,
259
+ Wt as validateRemainingCapacity,
260
+ us as validateRequestDepositorClaimerArtifactsResponse,
256
261
  Ma as validateSecretAgainstHashlock,
257
262
  pe as validateTBVProtocolParams,
258
263
  ns as validateUtxosAvailable,
259
- Kt as validateVaultAmounts,
260
- Xt as validateVaultProviderPubkey,
264
+ wt as validateVaultAmounts,
265
+ Yt as validateVaultProviderPubkey,
261
266
  ta as validateWalletPubkey,
262
- kt as verifyRegisteredParticipantKeys,
263
- Wt as verifyRegisteredVaultVersions,
264
- Ns as verifyServerIdentity,
267
+ jt as verifyRegisteredParticipantKeys,
268
+ zt as verifyRegisteredVaultVersions,
269
+ vs as verifyServerIdentity,
265
270
  Ms as vpTokenRegistry,
266
- wt as waitForPeginRegistrationDepth,
267
- Gt as waitForPeginStatus,
271
+ Jt as waitForPeginRegistrationDepth,
272
+ Zt as waitForPeginStatus,
268
273
  ga as waitForTransactionReceiptSmartAware
269
274
  };
270
275
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-E-UHA1un.cjs"),a=require("../../../signPsbtsWithFallback-DMSpIQWH.cjs");exports.PeginManager=e.PeginManager;exports.estimateSubmitPeginRequestBatchGas=e.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=a.PayoutManager;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-DEByBX5R.cjs"),a=require("../../../signPsbtsWithFallback-DtwzL5AA.cjs");exports.PeginManager=e.PeginManager;exports.estimateSubmitPeginRequestBatchGas=e.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=a.PayoutManager;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { P as t, e as r } from "../../../PeginManager-C9RPOd0L.js";
2
- import { P as o } from "../../../signPsbtsWithFallback-0VBALhjS.js";
1
+ import { P as t, e as r } from "../../../PeginManager-DNimKlmw.js";
2
+ import { P as o } from "../../../signPsbtsWithFallback-f7QLp0q8.js";
3
3
  export {
4
4
  o as PayoutManager,
5
5
  t as PeginManager,
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Golden vectors for the peg-in configuration fingerprint, pinning this
3
+ * encoder byte-for-byte against the vault contracts.
4
+ *
5
+ * ## What is being pinned, and how it could silently diverge
6
+ *
7
+ * The contract computes `keccak256(abi.encode(...))` over ten static fields.
8
+ * Under `abi.encode` every static field becomes one left-padded 32-byte word,
9
+ * so the declared integer WIDTH never reaches the output — encoding the tuple
10
+ * with all-`uint256` slots produces a byte-identical hash. What does change the
11
+ * bytes is the field ORDER, the field COUNT, and static-vs-dynamic type class.
12
+ * A transposition of two same-width fields is therefore invisible to type
13
+ * checking, invisible to a review that only reads the types, and invisible to
14
+ * any fixture whose fields share a value. It surfaces only here.
15
+ *
16
+ * That is why the vectors below give every numeric field of every vector a
17
+ * different non-zero value. The contract repository enforces the rule on its
18
+ * side with `test_peginFingerprintVectors_fieldsAreDistinctAndNonZero`; the
19
+ * fixture is consumed verbatim so the rule carries over rather than being
20
+ * restated.
21
+ *
22
+ * ## Oracle and provenance
23
+ *
24
+ * Source of truth: `_peginFingerprint` in `src/protocol/lib/PeginLogic.sol` of
25
+ * `babylonlabs-io/vault-contracts-aave-v4`, introduced by
26
+ * https://github.com/babylonlabs-io/vault-contracts-aave-v4/pull/555.
27
+ *
28
+ * `vectors/pegin_fingerprint_vectors.json` is that repository's
29
+ * `test/data/pegin_fingerprint_vectors.json`, vendored verbatim at commit
30
+ * `ec62ac62da7a590408ccdcd0a6339a2fa36126b0`. Not transcribed, not reformatted
31
+ * — byte-identity is what makes a re-vendor a diff, and what keeps this file
32
+ * and the Rust `depositor-cli` pinned to one artifact rather than two copies of
33
+ * one. Confirm it with:
34
+ *
35
+ * ```
36
+ * gh api "repos/babylonlabs-io/vault-contracts-aave-v4/contents/test/data/pegin_fingerprint_vectors.json?ref=ec62ac62da7a590408ccdcd0a6339a2fa36126b0" \
37
+ * --jq '.content' | base64 -d \
38
+ * | diff - src/tbv/core/pegin-fingerprint/__tests__/vectors/pegin_fingerprint_vectors.json
39
+ * ```
40
+ *
41
+ * Each vector was also recomputed independently with Foundry, which shares no
42
+ * code with either this encoder or the Solidity library that produced the file:
43
+ *
44
+ * ```
45
+ * cast abi-encode 'f(bytes32,uint256,address,bytes32,uint64,uint64,uint16,uint16,uint16,uint16)' \
46
+ * 0x7a76c7af21338f0474e4755a879f9ae8b6351b37d1a2e79e88e1ae95f20ea24b \
47
+ * 1 0x5FbDB2315678afecb367f032d93F642f64180aa3 \
48
+ * 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 \
49
+ * 3 5 7 11 13 17 | cast keccak
50
+ * # 0xe18d2cbf355cd69b44df7797eac6ad8c2dc522d328b63d20faa4f0be432cd73c
51
+ * ```
52
+ *
53
+ * ## Failure modes this test is designed to catch
54
+ *
55
+ * If the contract's field order, field count or domain string changes, the
56
+ * vector file changes with it and these assertions fail — which is the signal
57
+ * to re-vendor and re-check, not to edit the expectations. If this encoder
58
+ * drifts instead, the `encoded` assertion fails before the hash assertion and
59
+ * names the diverging word.
60
+ */
61
+ export {};
62
+ //# sourceMappingURL=peginFingerprint.golden.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peginFingerprint.golden.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/pegin-fingerprint/__tests__/peginFingerprint.golden.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Behaviour of the fingerprint encoder that the golden vectors cannot reach:
3
+ * that every field reaches the output, that out-of-range inputs are rejected by
4
+ * name, and that a non-checksummed address still encodes.
5
+ *
6
+ * Note what is NOT tested here. Field ORDER is pinned by the golden vectors and
7
+ * only by them — a test that swaps two inputs and asserts the hash moves passes
8
+ * just as happily against an encoder that transposes those same two fields
9
+ * internally. What the cases below do catch is a field that never reaches the
10
+ * encoding at all: dropped from the tuple, aliased to a neighbour, or shadowed
11
+ * by a constant. That failure is silent against a hand-written expectation and
12
+ * would otherwise surface only if a vector happened to vary that one field.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=peginFingerprint.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peginFingerprint.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/pegin-fingerprint/__tests__/peginFingerprint.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Peg-in configuration fingerprint: the `keccak256(abi.encode(...))` commitment
3
+ * over the protocol state a Pre-PegIn transaction was built against, sent with
4
+ * the peg-in registration so the registry can reject a request whose protocol
5
+ * state moved between the build and inclusion.
6
+ *
7
+ * Reproduces `PeginLogic._peginFingerprint` from the vault contracts exactly;
8
+ * see {@link computePeginFingerprint} for the encoding rules that matter.
9
+ *
10
+ * @module pegin-fingerprint
11
+ */
12
+ export { PEGIN_FINGERPRINT_DOMAIN, PEGIN_FINGERPRINT_DOMAIN_PREIMAGE, PeginFingerprintInputError, computePeginFingerprint, encodePeginFingerprintPreimage, } from './peginFingerprint';
13
+ export type { PeginFingerprintInput } from './peginFingerprint';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/pegin-fingerprint/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,wBAAwB,EACxB,iCAAiC,EACjC,0BAA0B,EAC1B,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}