@babylonlabs-io/ts-sdk 0.67.0 → 0.68.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.
- package/dist/PeginManager-Bsv6caG3.js +1466 -0
- package/dist/PeginManager-Bsv6caG3.js.map +1 -0
- package/dist/PeginManager-C5NWzGT7.cjs +2 -0
- package/dist/PeginManager-C5NWzGT7.cjs.map +1 -0
- package/dist/{batchPoll-cIxrSLLJ.js → batchPoll-Bc_UKaTz.js} +372 -421
- package/dist/batchPoll-Bc_UKaTz.js.map +1 -0
- package/dist/batchPoll-C9cZ5usJ.cjs +2 -0
- package/dist/batchPoll-C9cZ5usJ.cjs.map +1 -0
- package/dist/{bitcoin-d9eaaZB_.js → bitcoin-Ch_jxnDa.js} +3 -3
- package/dist/{bitcoin-d9eaaZB_.js.map → bitcoin-Ch_jxnDa.js.map} +1 -1
- package/dist/{buildAndBroadcastRefund-C4LiPATK.js → buildAndBroadcastRefund-CpMDJ8up.js} +142 -150
- package/dist/buildAndBroadcastRefund-CpMDJ8up.js.map +1 -0
- package/dist/buildAndBroadcastRefund-DrXwxrW1.cjs +2 -0
- package/dist/buildAndBroadcastRefund-DrXwxrW1.cjs.map +1 -0
- package/dist/challengeAssert-BNQ8sToz.js +64 -0
- package/dist/challengeAssert-BNQ8sToz.js.map +1 -0
- package/dist/challengeAssert-BrpC3-cQ.cjs +2 -0
- package/dist/challengeAssert-BrpC3-cQ.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +246 -243
- package/dist/{mempoolApi-BxSINXIB.js → mempoolApi-71R_CNZa.js} +193 -117
- package/dist/mempoolApi-71R_CNZa.js.map +1 -0
- package/dist/mempoolApi-BJN9fGEd.cjs +2 -0
- package/dist/mempoolApi-BJN9fGEd.cjs.map +1 -0
- package/dist/{noPayout-BaZGRLD2.js → noPayout-CXn-geIS.js} +3 -3
- package/dist/{noPayout-BaZGRLD2.js.map → noPayout-CXn-geIS.js.map} +1 -1
- package/dist/{noPayout-CnQ1WLtr.cjs → noPayout-Ox27Td9x.cjs} +2 -2
- package/dist/{noPayout-CnQ1WLtr.cjs.map → noPayout-Ox27Td9x.cjs.map} +1 -1
- package/dist/{onChainBtcPubkey-DeF4cKoO.js → onChainBtcPubkey-BAHZyKQL.js} +2 -2
- package/dist/{onChainBtcPubkey-DeF4cKoO.js.map → onChainBtcPubkey-BAHZyKQL.js.map} +1 -1
- package/dist/{parseFundingOutpoints-pBRE11Hr.js → parseFundingOutpoints-CO-f6IHK.js} +2 -2
- package/dist/{parseFundingOutpoints-pBRE11Hr.js.map → parseFundingOutpoints-CO-f6IHK.js.map} +1 -1
- package/dist/{reservation-B4i_PQhY.js → reservation-CBAvoF3U.js} +2 -2
- package/dist/{reservation-B4i_PQhY.js.map → reservation-CBAvoF3U.js.map} +1 -1
- package/dist/{signPsbtsWithFallback-Bb66DfY5.js → signPsbtsWithFallback-Bv79gLFe.js} +122 -100
- package/dist/signPsbtsWithFallback-Bv79gLFe.js.map +1 -0
- package/dist/signPsbtsWithFallback-DJ4kE9UI.cjs +2 -0
- package/dist/signPsbtsWithFallback-DJ4kE9UI.cjs.map +1 -0
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +3 -3
- package/dist/tbv/core/clients/vault-provider/auth/__tests__/bip322P2wpkhVectors.d.ts +32 -0
- package/dist/tbv/core/clients/vault-provider/auth/__tests__/bip322P2wpkhVectors.d.ts.map +1 -0
- package/dist/tbv/core/clients/vault-provider/auth/__tests__/bip322Verify.test.d.ts +9 -6
- package/dist/tbv/core/clients/vault-provider/auth/__tests__/bip322Verify.test.d.ts.map +1 -1
- package/dist/tbv/core/clients/vault-provider/auth/bip322Verify.d.ts +54 -20
- package/dist/tbv/core/clients/vault-provider/auth/bip322Verify.d.ts.map +1 -1
- package/dist/tbv/core/deposit-terms/__tests__/depositTerms.test.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/__tests__/depositTerms.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts +41 -4
- package/dist/tbv/core/deposit-terms/depositTerms.d.ts.map +1 -1
- package/dist/tbv/core/deposit-terms/prePeginApproval.d.ts +10 -5
- package/dist/tbv/core/deposit-terms/prePeginApproval.d.ts.map +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +244 -241
- package/dist/tbv/core/managers/PayoutManager.d.ts +8 -2
- package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/PeginManager.d.ts +7 -0
- package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/managers/pegin/__tests__/verifyPopWitness.test.d.ts +11 -0
- package/dist/tbv/core/managers/pegin/__tests__/verifyPopWitness.test.d.ts.map +1 -0
- package/dist/tbv/core/managers/pegin/expandPerVaultSecrets.d.ts.map +1 -1
- package/dist/tbv/core/managers/pegin/index.d.ts +1 -0
- package/dist/tbv/core/managers/pegin/index.d.ts.map +1 -1
- package/dist/tbv/core/managers/pegin/verifyPopWitness.d.ts +21 -0
- package/dist/tbv/core/managers/pegin/verifyPopWitness.d.ts.map +1 -0
- package/dist/tbv/core/primitives/challengers.d.ts +31 -5
- package/dist/tbv/core/primitives/challengers.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.d.ts +2 -0
- package/dist/tbv/core/primitives/index.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.js +43 -41
- package/dist/tbv/core/primitives/psbt/__tests__/helpers.d.ts +5 -0
- package/dist/tbv/core/primitives/psbt/__tests__/helpers.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/__tests__/verifyKeyPathSchnorrSignature.test.d.ts +12 -0
- package/dist/tbv/core/primitives/psbt/__tests__/verifyKeyPathSchnorrSignature.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/payout.d.ts +19 -7
- package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/verifyKeyPathSchnorrSignature.d.ts +65 -0
- package/dist/tbv/core/primitives/psbt/verifyKeyPathSchnorrSignature.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/verifyP2wpkhEcdsaSignature.d.ts +40 -0
- package/dist/tbv/core/primitives/psbt/verifyP2wpkhEcdsaSignature.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/verifyScriptPathSchnorrSignature.d.ts +2 -1
- package/dist/tbv/core/primitives/psbt/verifyScriptPathSchnorrSignature.d.ts.map +1 -1
- package/dist/tbv/core/primitives/utils/__tests__/taproot.test.d.ts +13 -0
- package/dist/tbv/core/primitives/utils/__tests__/taproot.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/utils/taproot.d.ts +29 -0
- package/dist/tbv/core/primitives/utils/taproot.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +2 -2
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +2 -2
- package/dist/tbv/core/utils/index.js +2 -2
- package/dist/tbv/core/utils/witness/witnessStack.d.ts +24 -0
- package/dist/tbv/core/utils/witness/witnessStack.d.ts.map +1 -0
- package/dist/tbv/core/vault-secrets/index.js +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +244 -241
- package/dist/testing/MockBitcoinWallet.d.ts +9 -0
- package/dist/testing/MockBitcoinWallet.d.ts.map +1 -1
- package/dist/testing/__tests__/MockBitcoinWallet.test.d.ts +2 -0
- package/dist/testing/__tests__/MockBitcoinWallet.test.d.ts.map +1 -0
- package/dist/testing/index.cjs +1 -1
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.js +136 -45
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/signBip322P2wpkhWitness.d.ts +25 -0
- package/dist/testing/signBip322P2wpkhWitness.d.ts.map +1 -0
- package/dist/{toRefundInputs-BY_fcvrv.js → toRefundInputs-4UJfSVEz.js} +6 -6
- package/dist/{toRefundInputs-BY_fcvrv.js.map → toRefundInputs-4UJfSVEz.js.map} +1 -1
- package/dist/{toRefundInputs-DYL9C-aG.cjs → toRefundInputs-DgDhx_Ut.cjs} +2 -2
- package/dist/{toRefundInputs-DYL9C-aG.cjs.map → toRefundInputs-DgDhx_Ut.cjs.map} +1 -1
- package/dist/verifyKeyPathSchnorrSignature-C6Cmk0R1.js +372 -0
- package/dist/verifyKeyPathSchnorrSignature-C6Cmk0R1.js.map +1 -0
- package/dist/verifyKeyPathSchnorrSignature-Cr5T4Aym.cjs +2 -0
- package/dist/verifyKeyPathSchnorrSignature-Cr5T4Aym.cjs.map +1 -0
- package/dist/verifyScriptPathSchnorrSignature-Dy9gF5RF.js +931 -0
- package/dist/verifyScriptPathSchnorrSignature-Dy9gF5RF.js.map +1 -0
- package/dist/verifyScriptPathSchnorrSignature-la8XOAFm.cjs +2 -0
- package/dist/verifyScriptPathSchnorrSignature-la8XOAFm.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/PeginManager-BBl4xkWz.js +0 -1359
- package/dist/PeginManager-BBl4xkWz.js.map +0 -1
- package/dist/PeginManager-p-ajwSxG.cjs +0 -2
- package/dist/PeginManager-p-ajwSxG.cjs.map +0 -1
- package/dist/batchPoll-6L5oToGr.cjs +0 -2
- package/dist/batchPoll-6L5oToGr.cjs.map +0 -1
- package/dist/batchPoll-cIxrSLLJ.js.map +0 -1
- package/dist/buildAndBroadcastRefund-C4LiPATK.js.map +0 -1
- package/dist/buildAndBroadcastRefund-Daw5ZUKR.cjs +0 -2
- package/dist/buildAndBroadcastRefund-Daw5ZUKR.cjs.map +0 -1
- package/dist/challengeAssert-BFRE2DM-.cjs +0 -2
- package/dist/challengeAssert-BFRE2DM-.cjs.map +0 -1
- package/dist/challengeAssert-C7PzyJ7g.js +0 -75
- package/dist/challengeAssert-C7PzyJ7g.js.map +0 -1
- package/dist/mempoolApi-BxSINXIB.js.map +0 -1
- package/dist/mempoolApi-CXfr-L6x.cjs +0 -2
- package/dist/mempoolApi-CXfr-L6x.cjs.map +0 -1
- package/dist/peginInput-Ci921gTl.cjs +0 -2
- package/dist/peginInput-Ci921gTl.cjs.map +0 -1
- package/dist/peginInput-HQPWZfly.js +0 -123
- package/dist/peginInput-HQPWZfly.js.map +0 -1
- package/dist/signPsbtsWithFallback-Bb66DfY5.js.map +0 -1
- package/dist/signPsbtsWithFallback-PTgWxsG3.cjs +0 -2
- package/dist/signPsbtsWithFallback-PTgWxsG3.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-DPAd_qke.cjs +0 -2
- package/dist/verifyScriptPathSchnorrSignature-DPAd_qke.cjs.map +0 -1
- package/dist/verifyScriptPathSchnorrSignature-i-koT139.js +0 -817
- package/dist/verifyScriptPathSchnorrSignature-i-koT139.js.map +0 -1
package/dist/tbv/core/index.js
CHANGED
|
@@ -1,246 +1,249 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { computeMinClaimValue as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
import { B as
|
|
9
|
-
import { c as
|
|
10
|
-
import { C as
|
|
11
|
-
import { P as
|
|
12
|
-
import { A as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { V as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { U as
|
|
20
|
-
import { M as
|
|
21
|
-
import { O as
|
|
22
|
-
import { A as
|
|
23
|
-
import { a as
|
|
24
|
-
import { D as
|
|
25
|
-
import { H as
|
|
26
|
-
import { C as
|
|
1
|
+
import { P as s, f as t, g as r, d as i, b as o, a as n, c as P, h as p, e as u } from "../../verifyScriptPathSchnorrSignature-Dy9gF5RF.js";
|
|
2
|
+
import { a as c } from "../../constants-GjWXdaqV.js";
|
|
3
|
+
import { computeMinClaimValue as E, computeMinPeginFee as g, deriveVaultId as A, expandAuthAnchor as T, expandHashlockSecret as S, expandWotsSeed as R, peginP2aAnchorOutput as m, supportedTxGraphVersions as _, validatePeginP2aAnchor as f } from "@babylonlabs-io/babylon-tbv-rust-wasm";
|
|
4
|
+
import { a as x, c as h, b as O, e as b, f as I } from "../../verifyKeyPathSchnorrSignature-C6Cmk0R1.js";
|
|
5
|
+
import { a as V, b as y } from "../../noPayout-CXn-geIS.js";
|
|
6
|
+
import { b as F } from "../../challengeAssert-BNQ8sToz.js";
|
|
7
|
+
import { c as N, d as B, a as U, b as H, e as K, f as L, k, g as X, h as w, i as W, j as G, p as j, s as J, t as z, u as Y, v as Z } from "../../bitcoin-Ch_jxnDa.js";
|
|
8
|
+
import { B as Q, H as $, K as aa, M as ea, T as sa, c as ta } from "../../validation-Dj3dqYtl.js";
|
|
9
|
+
import { c as ia } from "../../signing-DaLvGwQe.js";
|
|
10
|
+
import { C as na, M as Pa, P as pa, b as ua, a as da, c as ca, d as la, f as Ea, e as ga } from "../../PeginManager-Bsv6caG3.js";
|
|
11
|
+
import { P as Ta, c as Sa, f as Ra, r as ma, s as _a, v as fa } from "../../signPsbtsWithFallback-Bv79gLFe.js";
|
|
12
|
+
import { A as xa, P as ha } from "../../ProtocolParams.abi-C0TSRaHV.js";
|
|
13
|
+
import { B as ba } from "../../BTCVaultRegistry.abi-CJwWI2EO.js";
|
|
14
|
+
import { B as va } from "../../BTCVaultRegistryKeyEpochs.abi-CXjhRZbm.js";
|
|
15
|
+
import { C as ya, e as Da, g as Fa, h as Ma, i as Na } from "../../errors-Blc-JWnI.js";
|
|
16
|
+
import { V as Ua, b as Ha, a as Ka, d as La, f as ka, p as Xa } from "../../parseFundingOutpoints-CO-f6IHK.js";
|
|
17
|
+
import { B as Wa, a as Ga, f as ja, c as Ja, b as za, d as Ya, g as Za, i as qa, h as Qa, s as $a, e as ae, w as ee } from "../../waitForTransactionReceiptSmartAware-lobLm0q0.js";
|
|
18
|
+
import { B as te, D as re, L as ie, M as oe, c as ne, P as Pe, b as pe, a as ue, S as de, T as ce, W as le, f as Ee, d as ge, p as Ae, r as Te } from "../../fundPeginTransaction-B2wyjqp0.js";
|
|
19
|
+
import { U as Re, a as me, e as _e, f as fe, v as Ce } from "../../reservation-CBAvoF3U.js";
|
|
20
|
+
import { M as he, V as Oe, g as be, a as Ie, b as ve, c as Ve, d as ye, e as De, f as Fe, h as Me, i as Ne, p as Be, v as Ue, j as He, k as Ke } from "../../mempoolApi-71R_CNZa.js";
|
|
21
|
+
import { O as ke, S as Xe, V as we, g as We, h as Ge, i as je, j as Je, a as ze, d as Ye, b as Ze, f as qe, p as Qe, r as $e, v as as, c as es, e as ss } from "../../batchPoll-Bc_UKaTz.js";
|
|
22
|
+
import { A as rs, D as is, J as os, a as ns, b as Ps, d as ps, P as us, R as ds, e as cs, c as ls, V as Es, i as gs } from "../../json-rpc-client-DuUARJvV.js";
|
|
23
|
+
import { a as Ts } from "../../onChainBtcPubkey-BAHZyKQL.js";
|
|
24
|
+
import { D as Rs, a as ms, h as _s, j as fs, P as Cs, k as xs, U as hs, V as Os, c as bs, d as Is, f as vs, e as Vs, b as ys, i as Ds, r as Fs, g as Ms, t as Ns } from "../../toRefundInputs-4UJfSVEz.js";
|
|
25
|
+
import { H as Us, E as Hs, P as Ks, o as Ls, c as ks, d as Xs, K as ws, L as Ws, M as Gs, N as js, R as Js, a as zs, b as Ys, y as Zs, I as qs, J as Qs, g as $s, z as at, p as et, i as st, e as tt, G as rt, F as it, t as ot, A as nt, B as Pt, C as pt, D as ut, r as dt, s as ct, f as lt, h as Et, j as gt, v as At, k as Tt, l as St, m as Rt, n as mt, q as _t, u as ft, w as Ct, x as xt } from "../../buildAndBroadcastRefund-CpMDJ8up.js";
|
|
26
|
+
import { C as Ot, P as bt, c as It, g as vt, i as Vt } from "../../peginState-CxDiaKuk.js";
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
28
|
+
rs as AUTH_REJECTED_RPC_CODE,
|
|
29
|
+
xa as ApplicationRegistryABI,
|
|
30
|
+
Us as BIP68NotMatureError,
|
|
31
|
+
Q as BITCOIN_ADDRESS_RE,
|
|
32
|
+
ba as BTCVaultRegistryABI,
|
|
33
|
+
va as BTCVaultRegistryKeyEpochsABI,
|
|
34
|
+
te as BTC_DUST_SAT,
|
|
35
|
+
Wa as BitcoinScriptType,
|
|
36
|
+
na as COMMISSION_BPS_HEADROOM,
|
|
37
|
+
ya as CONTRACT_ERRORS,
|
|
38
|
+
Hs as ClaimerPegoutStatusValue,
|
|
39
|
+
Ot as ContractStatus,
|
|
40
|
+
Rs as DEPOSIT_TERMS_REJECTED_ERROR_NAME,
|
|
41
|
+
re as DUST_THRESHOLD,
|
|
42
|
+
is as DaemonStatus,
|
|
43
|
+
ms as DepositTermsRejectedError,
|
|
44
|
+
$ as HEX_RE,
|
|
45
|
+
os as JSON_RPC_ERROR_CODES,
|
|
46
|
+
ns as JsonRpcClient,
|
|
47
|
+
Ps as JsonRpcError,
|
|
48
|
+
aa as KNOWN_SCRIPT_PREFIXES,
|
|
49
|
+
ie as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
|
|
50
|
+
Pa as MAX_ACCEPTABLE_COMMISSION_BPS_CAP,
|
|
51
|
+
oe as MAX_NON_LEGACY_OUTPUT_SIZE,
|
|
52
|
+
ea as MAX_REASONABLE_FEE_SATS,
|
|
53
|
+
ne as MAX_REASONABLE_PEGIN_VBYTES,
|
|
54
|
+
he as MEMPOOL_API_URLS,
|
|
55
|
+
ke as OnChainBtcVaultStatus,
|
|
56
|
+
Pe as P2TR_INPUT_SIZE,
|
|
57
|
+
pe as PEGIN_AUTH_ANCHOR_OUTPUTS,
|
|
58
|
+
Ks as PEGIN_ETH_CONFIRMATIONS,
|
|
59
|
+
ue as PEGIN_FIXED_OUTPUTS,
|
|
60
|
+
ps as POST_WOTS_STATUSES,
|
|
61
|
+
us as PRE_DEPOSITOR_SIGNATURES_STATES,
|
|
62
|
+
Ls as ParticipantKeyDriftError,
|
|
63
|
+
Ta as PayoutManager,
|
|
64
|
+
bt as PeginAction,
|
|
65
|
+
pa as PeginManager,
|
|
66
|
+
_s as PeginParamsAmbiguousError,
|
|
67
|
+
fs as PeginParamsIncompleteSpaceError,
|
|
68
|
+
Cs as PeginParamsNotFoundError,
|
|
69
|
+
ks as PeginRegistrationMissingError,
|
|
70
|
+
Xs as PeginRegistrationNotFinalError,
|
|
71
|
+
xs as PeginSizingIntegrityError,
|
|
72
|
+
ha as ProtocolParamsABI,
|
|
73
|
+
s as PsbtSubstitutionError,
|
|
74
|
+
ws as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
|
|
75
|
+
Ws as REFUND_MAX_FEE_FRACTION_NUMERATOR,
|
|
76
|
+
Gs as REFUND_MAX_FEE_RATE_SATS_VB,
|
|
77
|
+
js as REFUND_VSIZE,
|
|
78
|
+
Js as RegisteredVaultVersionMismatchError,
|
|
79
|
+
ds as RpcErrorCode,
|
|
80
|
+
de as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
|
|
81
|
+
Xe as ServerIdentityError,
|
|
82
|
+
sa as TXID_RE,
|
|
83
|
+
ce as TX_BUFFER_SIZE_OVERHEAD,
|
|
84
|
+
hs as UnanchoredPrePeginError,
|
|
85
|
+
Re as UtxoNotAvailableError,
|
|
86
|
+
Ua as VAULT_APP_NAME,
|
|
87
|
+
cs as VP_BATCH_MAX_SIZE,
|
|
88
|
+
ls as VP_TERMINAL_FAILURE_STATUSES,
|
|
89
|
+
Es as VP_TRANSIENT_STATUSES,
|
|
90
|
+
we as VaultProviderRpcClient,
|
|
91
|
+
Os as VaultRootMismatchError,
|
|
92
|
+
We as ViemOperationKeyReader,
|
|
93
|
+
Ge as ViemProtocolParamsReader,
|
|
94
|
+
je as ViemUniversalChallengerReader,
|
|
95
|
+
Je as ViemVaultKeeperReader,
|
|
96
|
+
Oe as ViemVaultRegistryReader,
|
|
97
|
+
ze as VpResponseValidationError,
|
|
98
|
+
Ye as VpTokenRegistry,
|
|
99
|
+
le as WALLET_RELAY_FEE_RATE_THRESHOLD,
|
|
100
|
+
zs as activateVault,
|
|
101
|
+
Ys as activateVaultAndRedeem,
|
|
102
|
+
Ga as applyChangeOutputPolicy,
|
|
103
|
+
x as assertKeyPathSchnorrSignature,
|
|
104
|
+
Ts as assertOnChainBtcPubkey,
|
|
105
|
+
t as assertPsbtUnsignedTxMatches,
|
|
106
|
+
h as assertReturnedKeyPathSignatures,
|
|
107
|
+
r as assertScriptPathSchnorrSignature,
|
|
108
|
+
me as assertUtxosAvailable,
|
|
109
|
+
c as assertValidVaultCoreVersion,
|
|
110
|
+
Zs as assertVaultProviderHintAccepted,
|
|
111
|
+
Ze as batchPollByProvider,
|
|
112
|
+
qs as buildAndBroadcastRefund,
|
|
113
|
+
F as buildChallengeAssertPsbt,
|
|
114
|
+
ua as buildDepositTerms,
|
|
115
|
+
Ha as buildFundingOutpointsCommitment,
|
|
114
116
|
V as buildNoPayoutPsbt,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
i as buildPayoutPsbt,
|
|
118
|
+
O as buildPeginInputPsbt,
|
|
119
|
+
bs as buildPeginParamsCandidates,
|
|
120
|
+
o as buildPeginTxFromFundedPrePegin,
|
|
121
|
+
n as buildPrePeginPsbt,
|
|
120
122
|
y as buildRefundPsbt,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
123
|
+
Ka as buildVaultContext,
|
|
124
|
+
ja as calculateBtcTxHash,
|
|
125
|
+
It as canPerformAction,
|
|
126
|
+
N as canonicalizeBtcPubkey,
|
|
127
|
+
da as capMaxAcceptableCommissionBps,
|
|
128
|
+
ta as combineAbortSignals,
|
|
129
|
+
Ja as computeChangeOutputFeeSats,
|
|
130
|
+
Sa as computeHashlock,
|
|
131
|
+
za as computeMaxDeposit,
|
|
132
|
+
E as computeMinClaimValue,
|
|
133
|
+
g as computeMinPeginFee,
|
|
134
|
+
P as computeNumLocalChallengers,
|
|
135
|
+
Ya as computePeginBaseFeeSats,
|
|
136
|
+
ca as computeWotsBlockPublicKeysHash,
|
|
137
|
+
qe as createAuthenticatedVpClient,
|
|
138
|
+
p as createPayoutScript,
|
|
139
|
+
ia as createTaprootScriptPathSignOptions,
|
|
140
|
+
B as deriveBip86ScriptPubKeyHex,
|
|
141
|
+
Is as deriveHashlocksFromPrePegin,
|
|
142
|
+
U as deriveNativeSegwitAddress,
|
|
143
|
+
H as deriveTaprootAddress,
|
|
144
|
+
A as deriveVaultId,
|
|
145
|
+
La as deriveVaultRoot,
|
|
146
|
+
la as deriveWotsBlocksFromSeed,
|
|
147
|
+
vs as describePeginParamsCandidate,
|
|
148
|
+
Vs as describeUnresolvedVersion,
|
|
149
|
+
K as ensureHexPrefix,
|
|
150
|
+
Ea as ensurePrePeginTermsApproval,
|
|
151
|
+
Qs as estimateRefundFeeSats,
|
|
152
|
+
ga as estimateSubmitPeginRequestBatchGas,
|
|
153
|
+
T as expandAuthAnchor,
|
|
154
|
+
S as expandHashlockSecret,
|
|
155
|
+
R as expandWotsSeed,
|
|
156
|
+
Da as extractErrorData,
|
|
157
|
+
_e as extractInputsFromTransaction,
|
|
158
|
+
u as extractPayoutSignature,
|
|
159
|
+
b as extractPeginInputSignature,
|
|
160
|
+
I as finalizePeginInputPsbt,
|
|
161
|
+
fe as findOverlappingPendingVaults,
|
|
162
|
+
L as formatSatoshisToBtc,
|
|
163
|
+
Ra as forwardDepositApproval,
|
|
164
|
+
ka as forwardDeriveContextHash,
|
|
165
|
+
Ee as fundPeginTransaction,
|
|
166
|
+
be as getAddressTxs,
|
|
167
|
+
Ie as getAddressUtxos,
|
|
168
|
+
Fa as getContractErrorMessage,
|
|
169
|
+
Za as getDustThreshold,
|
|
170
|
+
ve as getMempoolApiUrl,
|
|
171
|
+
k as getNetwork,
|
|
172
|
+
Ve as getNetworkFees,
|
|
173
|
+
ye as getOutspend,
|
|
174
|
+
vt as getPeginProtocolState,
|
|
175
|
+
qa as getPsbtInputFields,
|
|
176
|
+
Qa as getScriptType,
|
|
177
|
+
X as getSortedXOnlyPubkeys,
|
|
178
|
+
De as getTipHeight,
|
|
179
|
+
Fe as getTxHex,
|
|
180
|
+
Me as getTxInfo,
|
|
181
|
+
Ne as getUtxoInfo,
|
|
182
|
+
Ma as handleContractError,
|
|
183
|
+
w as hexToUint8Array,
|
|
184
|
+
Vt as isActivationDeadlinePassedOnChain,
|
|
185
|
+
W as isAddressFromPublicKey,
|
|
186
|
+
gs as isAuthRejectedError,
|
|
187
|
+
$s as isDepositAmountValid,
|
|
188
|
+
ys as isDepositTermsRejectedError,
|
|
189
|
+
at as isHintAccepted,
|
|
190
|
+
Na as isKnownContractError,
|
|
191
|
+
et as isParticipantKeyDriftError,
|
|
192
|
+
st as isPeginRegistrationMissingError,
|
|
193
|
+
tt as isPeginRegistrationNotFinalError,
|
|
194
|
+
rt as isPegoutTerminalStatus,
|
|
195
|
+
it as isRecognizedPegoutStatus,
|
|
196
|
+
ot as isRegisteredVaultVersionMismatchError,
|
|
197
|
+
G as isValidHex,
|
|
198
|
+
Ds as isWotsMismatchError,
|
|
199
|
+
nt as matchKeyHint,
|
|
200
|
+
Pt as matchKeySetHint,
|
|
201
|
+
Xa as parseFundingOutpointsFromTx,
|
|
202
|
+
ge as parseUnfundedWasmTransaction,
|
|
203
|
+
Ae as peginOutputCount,
|
|
204
|
+
m as peginP2aAnchorOutput,
|
|
205
|
+
Qe as primeVpTokenRegistry,
|
|
206
|
+
j as processPublicKeyToXOnly,
|
|
207
|
+
Be as pushTx,
|
|
208
|
+
Te as rateBasedTxBufferFee,
|
|
209
|
+
Fs as rebuildDepositTermsCore,
|
|
210
|
+
Ms as reconstructPeginParams,
|
|
211
|
+
ma as requireChangeAddress,
|
|
212
|
+
pt as resolveCurrentParticipantKeys,
|
|
213
|
+
ut as resolveParticipantKeysAtEpochs,
|
|
214
|
+
$e as resolveProtocolAddresses,
|
|
215
|
+
dt as runDepositorPresignFlow,
|
|
216
|
+
$a as selectUtxosForPegin,
|
|
217
|
+
ae as shouldAddChangeOutput,
|
|
218
|
+
ct as signDepositorGraph,
|
|
219
|
+
J as stripHexPrefix,
|
|
220
|
+
lt as submitWotsPublicKey,
|
|
221
|
+
_ as supportedTxGraphVersions,
|
|
222
|
+
_a as supportsDepositApproval,
|
|
223
|
+
Ns as toRefundInputs,
|
|
224
|
+
z as toXOnly,
|
|
225
|
+
Y as uint8ArrayToHex,
|
|
226
|
+
Et as validateDepositAmount,
|
|
227
|
+
gt as validateMultiVaultDepositInputs,
|
|
228
|
+
Ue as validateOffchainParams,
|
|
229
|
+
At as validateOnChainParticipantKeys,
|
|
230
|
+
He as validatePegInConfiguration,
|
|
231
|
+
f as validatePeginP2aAnchor,
|
|
232
|
+
Tt as validateProviderSelection,
|
|
233
|
+
St as validateRemainingCapacity,
|
|
234
|
+
as as validateRequestDepositorClaimerArtifactsResponse,
|
|
235
|
+
fa as validateSecretAgainstHashlock,
|
|
236
|
+
Ke as validateTBVProtocolParams,
|
|
237
|
+
Ce as validateUtxosAvailable,
|
|
238
|
+
Rt as validateVaultAmounts,
|
|
239
|
+
mt as validateVaultProviderPubkey,
|
|
240
|
+
Z as validateWalletPubkey,
|
|
241
|
+
_t as verifyRegisteredParticipantKeys,
|
|
242
|
+
ft as verifyRegisteredVaultVersions,
|
|
243
|
+
es as verifyServerIdentity,
|
|
244
|
+
ss as vpTokenRegistry,
|
|
245
|
+
Ct as waitForPeginRegistrationDepth,
|
|
246
|
+
xt as waitForPeginStatus,
|
|
247
|
+
ee as waitForTransactionReceiptSmartAware
|
|
245
248
|
};
|
|
246
249
|
//# sourceMappingURL=index.js.map
|
|
@@ -76,8 +76,14 @@ interface SignPayoutBaseParams {
|
|
|
76
76
|
* Forwarded to {@link buildPayoutPsbt} for the fee band.
|
|
77
77
|
*/
|
|
78
78
|
protocolFeeRate: bigint;
|
|
79
|
-
/**
|
|
80
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Security council member x-only pubkeys (hex); forwarded to
|
|
81
|
+
* {@link buildPayoutPsbt} to rebuild the Assert:0 payout leaf and to size the
|
|
82
|
+
* fee floor (see PayoutParams).
|
|
83
|
+
*/
|
|
84
|
+
councilMembers: string[];
|
|
85
|
+
/** M-of-N council quorum; shapes the Assert:0 council leaf (see PayoutParams). */
|
|
86
|
+
councilQuorum: number;
|
|
81
87
|
/**
|
|
82
88
|
* RFC-006 resolved payout destinations, keyed by lowercased x-only operation
|
|
83
89
|
* pubkey. Forwarded verbatim to {@link buildPayoutPsbt}; every VK claimer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PayoutManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAML,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAMvB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,
|
|
1
|
+
{"version":3,"file":"PayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PayoutManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAML,KAAK,OAAO,EACb,MAAM,eAAe,CAAC;AAMvB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,6BAA6B,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB,kFAAkF;IAClF,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,+EAA+E;IAC/E,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;;OAIG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,qBAAqB,CACzB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,qBAAqB,CAAC;IA6DjC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,oBAAoB,IAAI,OAAO;IAI/B;;;;;;;;OAQG;IACG,2BAA2B,CAAC,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAC1E,KAAK,CAAC;QACJ,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC,CACH;CA8FF"}
|
|
@@ -524,6 +524,13 @@ export declare class PeginManager {
|
|
|
524
524
|
* wallet to the connected ETH account for this chain and vault
|
|
525
525
|
* registry. The returned {@link PopSignature} can be reused across
|
|
526
526
|
* every register call in the same session.
|
|
527
|
+
*
|
|
528
|
+
* The witness is verified against the depositor key before it is
|
|
529
|
+
* returned — Schnorr for one-item (P2TR), ECDSA over the BIP-322
|
|
530
|
+
* P2WPKH virtual transaction for two-item — see {@link verifyPopWitness}.
|
|
531
|
+
*
|
|
532
|
+
* @throws If the wallet returns a malformed witness or a signature that
|
|
533
|
+
* does not verify.
|
|
527
534
|
*/
|
|
528
535
|
signProofOfPossession(): Promise<PopSignature>;
|
|
529
536
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PeginManager.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/managers/PeginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAC;AAUd,OAAO,KAAK,EACV,aAAa,EACb,IAAI,EAEL,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAUL,KAAK,OAAO,EAEb,MAAM,eAAe,CAAC;AASvB,OAAO,EASL,KAAK,IAAI,EACV,MAAM,UAAU,CAAC;AA2BlB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;IAEzB;;;OAGG;IACH,SAAS,EAAE,YAAY,CAAC;IAExB;;;OAGG;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G,qBAAqB,IAAI,OAAO,CAAC,YAAY,CAAC;IA+BpD;;;;;;;OAOG;YACW,yBAAyB;IAkBvC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,uBAAuB,IAAI,OAAO;CAGnC;AAmED,MAAM,WAAW,wCAAwC;IACvD,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,MAAM,CAAC,CA4CjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../PeginManager-C5NWzGT7.cjs"),a=require("../../../signPsbtsWithFallback-DJ4kE9UI.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-
|
|
2
|
-
import { P as o } from "../../../signPsbtsWithFallback-
|
|
1
|
+
import { P as t, e as r } from "../../../PeginManager-Bsv6caG3.js";
|
|
2
|
+
import { P as o } from "../../../signPsbtsWithFallback-Bv79gLFe.js";
|
|
3
3
|
export {
|
|
4
4
|
o as PayoutManager,
|
|
5
5
|
t as PeginManager,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-side PoP witness checks.
|
|
3
|
+
*
|
|
4
|
+
* The P2TR cases reuse the BIP-322 golden vector emitted by the Rust
|
|
5
|
+
* reference (`btc-vault/crates/btc-auth/src/server_identity.rs`, signer
|
|
6
|
+
* seed 7); the P2WPKH cases use BIP-322's official test vectors — so a
|
|
7
|
+
* passing test proves the witness path feeds the verifiers exactly what
|
|
8
|
+
* a real signer produced.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=verifyPopWitness.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyPopWitness.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/managers/pegin/__tests__/verifyPopWitness.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandPerVaultSecrets.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/pegin/expandPerVaultSecrets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"expandPerVaultSecrets.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/pegin/expandPerVaultSecrets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAY7E;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,EAAE,kBAAkB,EAAE,EAAE,CAAC;IACzC,4EAA4E;IAC5E,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,kDAAkD;IAClD,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,mEAAmE;IACnE,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,uBAAuB,CAAC,CA+BlC"}
|
|
@@ -9,4 +9,5 @@ export { assertAuthAnchorOpReturn, findAuthAnchorOpReturn, } from './assertAuthA
|
|
|
9
9
|
export { expandPerVaultSecrets, type PerVaultExpansionResult, } from './expandPerVaultSecrets';
|
|
10
10
|
export { normalizePopSignature, normalizeXOnlyPubkey, } from './normalizeWalletInputs';
|
|
11
11
|
export { signPsbtsWithFallback } from './signPsbtsWithFallback';
|
|
12
|
+
export { verifyPopWitness, type PopWitnessVerdict } from './verifyPopWitness';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/pegin/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EACrB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/managers/pegin/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EACrB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|