@babylonlabs-io/ts-sdk 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PayoutManager-DOdsgcUR.cjs → PayoutManager-B1Ev0r7o.cjs} +2 -2
- package/dist/{PayoutManager-DOdsgcUR.cjs.map → PayoutManager-B1Ev0r7o.cjs.map} +1 -1
- package/dist/{PayoutManager-BZ212yml.js → PayoutManager-xEGvTbhL.js} +3 -3
- package/dist/{PayoutManager-BZ212yml.js.map → PayoutManager-xEGvTbhL.js.map} +1 -1
- package/dist/{PeginManager-BHplS4dM.cjs → PeginManager-BCRtUqyX.cjs} +2 -2
- package/dist/{PeginManager-BHplS4dM.cjs.map → PeginManager-BCRtUqyX.cjs.map} +1 -1
- package/dist/{PeginManager-DcwGom01.js → PeginManager-sizm3dlw.js} +7 -7
- package/dist/{PeginManager-DcwGom01.js.map → PeginManager-sizm3dlw.js.map} +1 -1
- package/dist/buildAndBroadcastReclaim-CE77jzTp.cjs +2 -0
- package/dist/buildAndBroadcastReclaim-CE77jzTp.cjs.map +1 -0
- package/dist/{buildAndBroadcastReclaim-CcQ0b1be.js → buildAndBroadcastReclaim-rQyAiAUS.js} +846 -822
- package/dist/buildAndBroadcastReclaim-rQyAiAUS.js.map +1 -0
- package/dist/challengeAssert-B2otuf7y.js +509 -0
- package/dist/challengeAssert-B2otuf7y.js.map +1 -0
- package/dist/challengeAssert-C3eMcM5Y.cjs +2 -0
- package/dist/challengeAssert-C3eMcM5Y.cjs.map +1 -0
- package/dist/constants-CAm10Qwp.cjs +2 -0
- package/dist/constants-CAm10Qwp.cjs.map +1 -0
- package/dist/constants-CvQZuxKv.js +48 -0
- package/dist/constants-CvQZuxKv.js.map +1 -0
- package/dist/{index-CVBtBjQ5.js → index-BRsWXDlv.js} +6 -6
- package/dist/{index-CVBtBjQ5.js.map → index-BRsWXDlv.js.map} +1 -1
- package/dist/{index-DpjYs5yr.cjs → index-C6avwx1s.cjs} +2 -2
- package/dist/{index-DpjYs5yr.cjs.map → index-C6avwx1s.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +302 -303
- package/dist/index.js.map +1 -1
- package/dist/{pegin-registration-client-DvyrUNku.js → pegin-registration-client-8tzSRDaq.js} +3 -3
- package/dist/{pegin-registration-client-DvyrUNku.js.map → pegin-registration-client-8tzSRDaq.js.map} +1 -1
- package/dist/{pegin-registration-client-BogzOk8B.cjs → pegin-registration-client-Bmkh1OZ9.cjs} +2 -2
- package/dist/{pegin-registration-client-BogzOk8B.cjs.map → pegin-registration-client-Bmkh1OZ9.cjs.map} +1 -1
- package/dist/{primeVpAuth-BPj2TPdD.cjs → primeVpAuth-CXNXYKrh.cjs} +2 -2
- package/dist/{primeVpAuth-BPj2TPdD.cjs.map → primeVpAuth-CXNXYKrh.cjs.map} +1 -1
- package/dist/{primeVpAuth-CiCdRNGf.js → primeVpAuth-D4UWXQ76.js} +2 -2
- package/dist/{primeVpAuth-CiCdRNGf.js.map → primeVpAuth-D4UWXQ76.js.map} +1 -1
- package/dist/{registration-records-CKLAv3gw.js → registration-records-BBOz21Dm.js} +15 -15
- package/dist/{registration-records-CKLAv3gw.js.map → registration-records-BBOz21Dm.js.map} +1 -1
- package/dist/{registration-records-DFQgBaYi.cjs → registration-records-DaBufozs.cjs} +2 -2
- package/dist/{registration-records-DFQgBaYi.cjs.map → registration-records-DaBufozs.cjs.map} +1 -1
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.js +3 -3
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +5 -5
- package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.js +1 -1
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +300 -301
- package/dist/tbv/core/index.js.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/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.js +29 -30
- package/dist/tbv/core/primitives/index.js.map +1 -1
- package/dist/tbv/core/primitives/psbt/__tests__/challengeAssert.test.d.ts +2 -0
- package/dist/tbv/core/primitives/psbt/__tests__/challengeAssert.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/__tests__/noPayout.test.d.ts +2 -0
- package/dist/tbv/core/primitives/psbt/__tests__/noPayout.test.d.ts.map +1 -0
- package/dist/tbv/core/primitives/psbt/challengeAssert.d.ts +43 -0
- package/dist/tbv/core/primitives/psbt/challengeAssert.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/constants.d.ts +50 -2
- package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
- package/dist/tbv/core/primitives/psbt/noPayout.d.ts +42 -0
- package/dist/tbv/core/primitives/psbt/noPayout.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.d.ts +12 -0
- package/dist/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.d.ts.map +1 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +7 -0
- package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
- package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +46 -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/wasm/__tests__/challengeAssertOutputConnector.test.d.ts +2 -0
- package/dist/tbv/core/wasm/__tests__/challengeAssertOutputConnector.test.d.ts.map +1 -0
- package/dist/tbv/core/wasm/index.cjs +1 -1
- package/dist/tbv/core/wasm/index.cjs.map +1 -1
- package/dist/tbv/core/wasm/index.d.ts +14 -2
- package/dist/tbv/core/wasm/index.d.ts.map +1 -1
- package/dist/tbv/core/wasm/index.js +81 -77
- package/dist/tbv/core/wasm/index.js.map +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +300 -301
- package/dist/tbv/index.js.map +1 -1
- package/dist/{toRefundInputs-8DgBT_Bg.cjs → toRefundInputs-DOCLxqC1.cjs} +2 -2
- package/dist/{toRefundInputs-8DgBT_Bg.cjs.map → toRefundInputs-DOCLxqC1.cjs.map} +1 -1
- package/dist/{toRefundInputs-CCMNAoRx.js → toRefundInputs-Dso_QEr-.js} +5 -5
- package/dist/{toRefundInputs-CCMNAoRx.js.map → toRefundInputs-Dso_QEr-.js.map} +1 -1
- package/dist/{types-Bda75Od0.cjs → types-DGr5HWwD.cjs} +2 -2
- package/dist/{types-Bda75Od0.cjs.map → types-DGr5HWwD.cjs.map} +1 -1
- package/dist/{types-C5jj3Cc-.js → types-Dbs--c2M.js} +2 -2
- package/dist/{types-C5jj3Cc-.js.map → types-Dbs--c2M.js.map} +1 -1
- package/dist/{verifyKeyPathSchnorrSignature-CQUut2-O.cjs → verifyKeyPathSchnorrSignature-BRTpEH9X.cjs} +2 -2
- package/dist/{verifyKeyPathSchnorrSignature-CQUut2-O.cjs.map → verifyKeyPathSchnorrSignature-BRTpEH9X.cjs.map} +1 -1
- package/dist/{verifyKeyPathSchnorrSignature-DxPbeSdQ.js → verifyKeyPathSchnorrSignature-IIj3Z2se.js} +2 -2
- package/dist/{verifyKeyPathSchnorrSignature-DxPbeSdQ.js.map → verifyKeyPathSchnorrSignature-IIj3Z2se.js.map} +1 -1
- package/dist/{verifyScriptPathSchnorrSignature-D2t1yACC.cjs → verifyScriptPathSchnorrSignature-CahYx5Td.cjs} +2 -2
- package/dist/{verifyScriptPathSchnorrSignature-D2t1yACC.cjs.map → verifyScriptPathSchnorrSignature-CahYx5Td.cjs.map} +1 -1
- package/dist/{verifyScriptPathSchnorrSignature-B3-VkvnK.js → verifyScriptPathSchnorrSignature-owu3BfyT.js} +2 -2
- package/dist/{verifyScriptPathSchnorrSignature-B3-VkvnK.js.map → verifyScriptPathSchnorrSignature-owu3BfyT.js.map} +1 -1
- package/package.json +3 -3
- package/dist/buildAndBroadcastReclaim-C7bq5wNM.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-C7bq5wNM.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-CcQ0b1be.js.map +0 -1
- package/dist/challengeAssert-Cp_GeRg8.js +0 -64
- package/dist/challengeAssert-Cp_GeRg8.js.map +0 -1
- package/dist/challengeAssert-Z7_YULBb.cjs +0 -2
- package/dist/challengeAssert-Z7_YULBb.cjs.map +0 -1
- package/dist/constants-BeYquVd-.js +0 -36
- package/dist/constants-BeYquVd-.js.map +0 -1
- package/dist/constants-BwCg5K6R.cjs +0 -2
- package/dist/constants-BwCg5K6R.cjs.map +0 -1
- package/dist/noPayout-B-vGXJ-V.js +0 -361
- package/dist/noPayout-B-vGXJ-V.js.map +0 -1
- package/dist/noPayout-DOHak0ui.cjs +0 -2
- package/dist/noPayout-DOHak0ui.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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-BCRtUqyX.cjs"),a=require("../../../PayoutManager-B1Ev0r7o.cjs");exports.PeginManager=e.PeginManager;exports.PayoutManager=a.PayoutManager;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as e } from "../../../PeginManager-
|
|
2
|
-
import { P } from "../../../PayoutManager-
|
|
1
|
+
import { P as e } from "../../../PeginManager-sizm3dlw.js";
|
|
2
|
+
import { P } from "../../../PayoutManager-xEGvTbhL.js";
|
|
3
3
|
export {
|
|
4
4
|
P as PayoutManager,
|
|
5
5
|
e as PeginManager
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../verifyScriptPathSchnorrSignature-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../verifyScriptPathSchnorrSignature-CahYx5Td.cjs"),s=require("../../../secp256k1-DDHQ1_za.cjs"),r=require("../wasm/index.cjs"),a=require("../../../verifyKeyPathSchnorrSignature-BRTpEH9X.cjs"),i=require("../../../challengeAssert-C3eMcM5Y.cjs"),e=require("../../../bitcoin-D-O2GjbC.cjs");exports.PEGIN_DEPOSITOR_CLAIM_VOUT=t.PEGIN_DEPOSITOR_CLAIM_VOUT;exports.PsbtSubstitutionError=t.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=t.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=t.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=t.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=t.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=t.buildPrePeginPsbt;exports.computeNumLocalChallengers=t.computeNumLocalChallengers;exports.createPayoutScript=t.createPayoutScript;exports.deriveDepositorClaimDescriptor=t.deriveDepositorClaimDescriptor;exports.deriveDepositorClaimScriptPubKey=t.deriveDepositorClaimScriptPubKey;exports.extractPayoutSignature=t.extractPayoutSignature;exports.assertValidVaultCoreVersion=s.assertValidVaultCoreVersion;exports.computeMinClaimValue=r.computeMinClaimValue;exports.computeMinPeginFee=r.computeMinPeginFee;exports.deriveVaultId=r.deriveVaultId;exports.peginP2aAnchorOutput=r.peginP2aAnchorOutput;exports.supportedTxGraphVersions=r.supportedTxGraphVersions;exports.validatePeginP2aAnchor=r.validatePeginP2aAnchor;exports.assertKeyPathSchnorrSignature=a.assertKeyPathSchnorrSignature;exports.assertReturnedKeyPathSignatures=a.assertReturnedKeyPathSignatures;exports.buildPeginInputPsbt=a.buildPeginInputPsbt;exports.extractPeginInputSignature=a.extractPeginInputSignature;exports.finalizePeginInputPsbt=a.finalizePeginInputPsbt;exports.buildChallengeAssertPsbt=i.buildChallengeAssertPsbt;exports.buildNoPayoutPsbt=i.buildNoPayoutPsbt;exports.buildReclaimPsbt=i.buildReclaimPsbt;exports.buildRefundPsbt=i.buildRefundPsbt;exports.estimateReclaimFeeSats=i.estimateReclaimFeeSats;exports.finalizeScriptPathWithSignatures=i.finalizeScriptPathWithSignatures;exports.reclaimVsize=i.reclaimVsize;exports.canonicalizeBtcPubkey=e.canonicalizeBtcPubkey;exports.deriveBip86ScriptPubKeyHex=e.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;exports.formatSatoshisToBtc=e.formatSatoshisToBtc;exports.getSortedXOnlyPubkeys=e.getSortedXOnlyPubkeys;exports.hexToUint8Array=e.hexToUint8Array;exports.isAddressFromPublicKey=e.isAddressFromPublicKey;exports.isValidHex=e.isValidHex;exports.processPublicKeyToXOnly=e.processPublicKeyToXOnly;exports.stripHexPrefix=e.stripHexPrefix;exports.toXOnly=e.toXOnly;exports.uint8ArrayToHex=e.uint8ArrayToHex;exports.validateWalletPubkey=e.validateWalletPubkey;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { P as s, h as t, i as r, j as i, f as o, b as u, a as n, c as P, k as l, d, e as c, g as b } from "../../../verifyScriptPathSchnorrSignature-
|
|
1
|
+
import { P as s, h as t, i as r, j as i, f as o, b as u, a as n, c as P, k as l, d, e as c, g as b } from "../../../verifyScriptPathSchnorrSignature-owu3BfyT.js";
|
|
2
2
|
import { a as g } from "../../../secp256k1-BuxBFUHm.js";
|
|
3
|
-
import { computeMinClaimValue as x, computeMinPeginFee as S, deriveVaultId as y, peginP2aAnchorOutput as
|
|
4
|
-
import { a as A, c as V, b as C, e as I, f as O } from "../../../verifyKeyPathSchnorrSignature-
|
|
5
|
-
import {
|
|
6
|
-
import { b as
|
|
7
|
-
import { c as E, d as U, a as X, b as _, e as j, f as G, g as L, h as W, i as w, j as q, p as J, s as Q, t as Y, u as Z, v as $ } from "../../../bitcoin-C-TuHb-v.js";
|
|
3
|
+
import { computeMinClaimValue as x, computeMinPeginFee as S, deriveVaultId as y, peginP2aAnchorOutput as h, supportedTxGraphVersions as f, validatePeginP2aAnchor as v } from "../wasm/index.js";
|
|
4
|
+
import { a as A, c as V, b as C, e as I, f as O } from "../../../verifyKeyPathSchnorrSignature-IIj3Z2se.js";
|
|
5
|
+
import { d as F, c as H, a as R, b as k, e as z, f as D, r as M } from "../../../challengeAssert-B2otuf7y.js";
|
|
6
|
+
import { c as B, d as E, a as U, b as X, e as _, f as j, g as G, h as L, i as W, j as w, p as q, s as J, t as Q, u as Y, v as Z } from "../../../bitcoin-C-TuHb-v.js";
|
|
8
7
|
export {
|
|
9
8
|
s as PEGIN_DEPOSITOR_CLAIM_VOUT,
|
|
10
9
|
t as PsbtSubstitutionError,
|
|
@@ -13,44 +12,44 @@ export {
|
|
|
13
12
|
V as assertReturnedKeyPathSignatures,
|
|
14
13
|
i as assertScriptPathSchnorrSignature,
|
|
15
14
|
g as assertValidVaultCoreVersion,
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
F as buildChallengeAssertPsbt,
|
|
16
|
+
H as buildNoPayoutPsbt,
|
|
18
17
|
o as buildPayoutPsbt,
|
|
19
18
|
C as buildPeginInputPsbt,
|
|
20
19
|
u as buildPeginTxFromFundedPrePegin,
|
|
21
20
|
n as buildPrePeginPsbt,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
R as buildReclaimPsbt,
|
|
22
|
+
k as buildRefundPsbt,
|
|
23
|
+
B as canonicalizeBtcPubkey,
|
|
25
24
|
x as computeMinClaimValue,
|
|
26
25
|
S as computeMinPeginFee,
|
|
27
26
|
P as computeNumLocalChallengers,
|
|
28
27
|
l as createPayoutScript,
|
|
29
|
-
|
|
28
|
+
E as deriveBip86ScriptPubKeyHex,
|
|
30
29
|
d as deriveDepositorClaimDescriptor,
|
|
31
30
|
c as deriveDepositorClaimScriptPubKey,
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
U as deriveNativeSegwitAddress,
|
|
32
|
+
X as deriveTaprootAddress,
|
|
34
33
|
y as deriveVaultId,
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
_ as ensureHexPrefix,
|
|
35
|
+
z as estimateReclaimFeeSats,
|
|
37
36
|
b as extractPayoutSignature,
|
|
38
37
|
I as extractPeginInputSignature,
|
|
39
38
|
O as finalizePeginInputPsbt,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
39
|
+
D as finalizeScriptPathWithSignatures,
|
|
40
|
+
j as formatSatoshisToBtc,
|
|
41
|
+
G as getSortedXOnlyPubkeys,
|
|
42
|
+
L as hexToUint8Array,
|
|
43
|
+
W as isAddressFromPublicKey,
|
|
44
|
+
w as isValidHex,
|
|
45
|
+
h as peginP2aAnchorOutput,
|
|
46
|
+
q as processPublicKeyToXOnly,
|
|
47
|
+
M as reclaimVsize,
|
|
48
|
+
J as stripHexPrefix,
|
|
49
|
+
f as supportedTxGraphVersions,
|
|
50
|
+
Q as toXOnly,
|
|
51
|
+
Y as uint8ArrayToHex,
|
|
53
52
|
v as validatePeginP2aAnchor,
|
|
54
|
-
|
|
53
|
+
Z as validateWalletPubkey
|
|
55
54
|
};
|
|
56
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"challengeAssert.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/primitives/psbt/__tests__/challengeAssert.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noPayout.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/primitives/psbt/__tests__/noPayout.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChallengeAssertConnectorParams } from '../../wasm';
|
|
2
|
+
import { Transaction } from 'bitcoinjs-lib';
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for building a ChallengeAssert PSBT
|
|
4
5
|
*/
|
|
@@ -27,4 +28,46 @@ export interface ChallengeAssertParams {
|
|
|
27
28
|
* @throws If two inputs reference the same Assert output index
|
|
28
29
|
*/
|
|
29
30
|
export declare function buildChallengeAssertPsbt(params: ChallengeAssertParams): Promise<string>;
|
|
31
|
+
/** Which of a challenger's two ChallengeAssert transactions. */
|
|
32
|
+
export type ChallengeAssertHalf = "X" | "Y";
|
|
33
|
+
/**
|
|
34
|
+
* Parameters for {@link assertChallengeAssertIsCanonical}
|
|
35
|
+
*/
|
|
36
|
+
export interface AssertChallengeAssertIsCanonicalParams {
|
|
37
|
+
/** The ChallengeAssertX or ChallengeAssertY transaction the VP supplied */
|
|
38
|
+
challengeAssertTx: Transaction;
|
|
39
|
+
/** Authoritative Assert transaction, already bound to the depositor's Claim */
|
|
40
|
+
assertTx: Transaction;
|
|
41
|
+
/** Which half `challengeAssertTx` claims to be */
|
|
42
|
+
half: ChallengeAssertHalf;
|
|
43
|
+
/** The challenger's index in the hex-sorted local ∪ universal challenger set */
|
|
44
|
+
challengerIndex: number;
|
|
45
|
+
/** Number of local plus universal challengers (K) */
|
|
46
|
+
challengerCount: number;
|
|
47
|
+
/** The challenger's x-only public key (hex) */
|
|
48
|
+
challengerPubkey: string;
|
|
49
|
+
/** ChallengeAssert output connector scriptPubKey for this challenger (hex) */
|
|
50
|
+
outputConnectorScriptPubKey: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Require a VP-supplied ChallengeAssertX/Y to be exactly the transaction
|
|
54
|
+
* btc-vault builds for this challenger from the authoritative Assert.
|
|
55
|
+
*
|
|
56
|
+
* NoPayout spends output 0 of both ChallengeAsserts, and the depositor's
|
|
57
|
+
* NoPayout signature commits to their txids. The protocol collects no claimer
|
|
58
|
+
* signature on a ChallengeAssert, so that commitment is all that forces a
|
|
59
|
+
* challenger to broadcast the canonical one. A parent that does not spend this
|
|
60
|
+
* Assert, or whose output 0 is not the timelocked connector, would let a
|
|
61
|
+
* colluding challenger spend Assert:0 through NoPayout without the dispute
|
|
62
|
+
* that the claimer can answer with WronglyChallenged.
|
|
63
|
+
*
|
|
64
|
+
* The transaction is fully determined by the Assert, the challenger's sorted
|
|
65
|
+
* index and the connector script, so it is rebuilt here and compared by txid,
|
|
66
|
+
* which covers every non-witness byte.
|
|
67
|
+
*
|
|
68
|
+
* @param params - The supplied transaction and the authoritative inputs
|
|
69
|
+
* @throws If the challenger index is out of range, the Assert lacks the
|
|
70
|
+
* connector output, or the supplied transaction is not the canonical one
|
|
71
|
+
*/
|
|
72
|
+
export declare function assertChallengeAssertIsCanonical(params: AssertChallengeAssertIsCanonicalParams): void;
|
|
30
73
|
//# sourceMappingURL=challengeAssert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"challengeAssert.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/challengeAssert.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"challengeAssert.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/challengeAssert.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAiBlD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,iDAAiD;IACjD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qFAAqF;IACrF,WAAW,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,uBAAuB,EAAE,8BAA8B,EAAE,CAAC;CAC3D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,MAAM,CAAC,CA+EjB;AAED,gEAAgE;AAChE,MAAM,MAAM,mBAAmB,GAAG,GAAG,GAAG,GAAG,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,2EAA2E;IAC3E,iBAAiB,EAAE,WAAW,CAAC;IAC/B,+EAA+E;IAC/E,QAAQ,EAAE,WAAW,CAAC;IACtB,kDAAkD;IAClD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,eAAe,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,2BAA2B,EAAE,MAAM,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,sCAAsC,GAC7C,IAAI,CASN"}
|
|
@@ -27,8 +27,9 @@ export declare const DEPOSITOR_SIGNED_INPUT_COUNT = 1;
|
|
|
27
27
|
/** PegIn vault output index spent by the depositor's Payout input 0. */
|
|
28
28
|
export declare const PEGIN_VAULT_OUTPUT_INDEX = 0;
|
|
29
29
|
/**
|
|
30
|
-
* Assert output index spent by the Payout's
|
|
31
|
-
* ({@link PAYOUT_ASSERT_INPUT_INDEX} carries the signing regimes)
|
|
30
|
+
* Assert output index of the Payout/NoPayout connector, spent by the Payout's
|
|
31
|
+
* input 1 ({@link PAYOUT_ASSERT_INPUT_INDEX} carries the signing regimes) and
|
|
32
|
+
* by every NoPayout's input 0.
|
|
32
33
|
*/
|
|
33
34
|
export declare const ASSERT_PAYOUT_OUTPUT_INDEX = 0;
|
|
34
35
|
/** Payout input that spends the Vault UTXO (PegIn:{@link PEGIN_VAULT_OUTPUT_INDEX}); the depositor signs it in both regimes. */
|
|
@@ -139,6 +140,53 @@ export declare const NON_VP_CLAIMER_PAYOUT_OUTPUT_COUNT = 2;
|
|
|
139
140
|
* @see btc-vault crates/vault/docs/btc-transactions-spec.md (ChallengeAssertX / ChallengeAssertY)
|
|
140
141
|
*/
|
|
141
142
|
export declare const CHALLENGE_ASSERT_CONNECTORS_PER_CHALLENGER = 2;
|
|
143
|
+
/**
|
|
144
|
+
* First Assert output holding a per-challenger ChallengeAssert connector.
|
|
145
|
+
* ConnectorX for sorted challenger `i` is at `1 + i`, ConnectorY at
|
|
146
|
+
* `1 + K + i` (K = local + universal challengers), per btc-vault
|
|
147
|
+
* `crates/vault/src/transactions/challenge_assert.rs:165,180` @ b534ff9e.
|
|
148
|
+
*/
|
|
149
|
+
export declare const ASSERT_FIRST_CHALLENGER_CONNECTOR_VOUT = 1;
|
|
150
|
+
/**
|
|
151
|
+
* Assert outputs besides the challenger connectors: output 0 (Payout /
|
|
152
|
+
* NoPayout / CouncilNoPayout connector) and the claimer's CPFP anchor, last
|
|
153
|
+
* (btc-vault `crates/vault/src/transactions/assert.rs:7-13` @ b534ff9e).
|
|
154
|
+
*/
|
|
155
|
+
export declare const ASSERT_NON_CHALLENGER_OUTPUT_COUNT = 2;
|
|
156
|
+
/**
|
|
157
|
+
* First `vaultCoreVersion` whose Assert carries the RFC-008 marker
|
|
158
|
+
* `OP_RETURN` before the anchor. Matches `FIRST_MARKER_CORE_VERSION` in
|
|
159
|
+
* btc-vault `crates/vault/src/assert_marker.rs:48` @ b534ff9e; the graph-v1
|
|
160
|
+
* pin (2c1177ec) predates the marker.
|
|
161
|
+
*/
|
|
162
|
+
export declare const ASSERT_MARKER_FIRST_VAULT_CORE_VERSION = 2;
|
|
163
|
+
/**
|
|
164
|
+
* ChallengeAssertX/Y literals btc-vault builds deterministically
|
|
165
|
+
* (`build_challenge_assert_tx`, `crates/vault/src/transactions/challenge_assert.rs:49-96`
|
|
166
|
+
* @ b534ff9e, identical at the 2c1177ec and 27c0062b pins): nVersion 3 with
|
|
167
|
+
* zero fee, `LockTime::ZERO`, one input at `Sequence::MAX`, and a
|
|
168
|
+
* `DUST_AMOUNT` CPFP anchor to the challenger's BIP-86 key as output 1.
|
|
169
|
+
* Output 0 is the ChallengeAssert output connector, worth the spent Assert
|
|
170
|
+
* output minus the anchor.
|
|
171
|
+
*/
|
|
172
|
+
export declare const CHALLENGE_ASSERT_TX_VERSION = 3;
|
|
173
|
+
export declare const CHALLENGE_ASSERT_TX_LOCKTIME = 0;
|
|
174
|
+
export declare const CHALLENGE_ASSERT_INPUT_SEQUENCE = 4294967295;
|
|
175
|
+
export declare const CHALLENGE_ASSERT_ANCHOR_VALUE_SATS = 546;
|
|
176
|
+
/**
|
|
177
|
+
* NoPayout literals from `NoPayoutTx::new`
|
|
178
|
+
* (`crates/vault/src/transactions/nopayout.rs:148-209` @ b534ff9e):
|
|
179
|
+
* `Version::TWO`, `LockTime::ZERO`, Assert:0 at `Sequence::MAX` as input 0,
|
|
180
|
+
* then ChallengeAssertX:0 and ChallengeAssertY:0, each with the
|
|
181
|
+
* `timelockChallengeAssert` CSV as its sequence.
|
|
182
|
+
*/
|
|
183
|
+
export declare const NOPAYOUT_TX_VERSION = 2;
|
|
184
|
+
export declare const NOPAYOUT_TX_LOCKTIME = 0;
|
|
185
|
+
export declare const NOPAYOUT_ASSERT_INPUT_SEQUENCE = 4294967295;
|
|
186
|
+
/** NoPayout input count: Assert:0, ChallengeAssertX:0, ChallengeAssertY:0. */
|
|
187
|
+
export declare const NOPAYOUT_INPUT_COUNT = 3;
|
|
188
|
+
/** ChallengeAssert output NoPayout spends (`CHALLENGE_ASSERT_OUTPUT_CONNECTOR_INDEX`). */
|
|
189
|
+
export declare const CHALLENGE_ASSERT_OUTPUT_CONNECTOR_INDEX = 0;
|
|
142
190
|
/**
|
|
143
191
|
* Exclusive upper bound on VP commission (bps). Matches
|
|
144
192
|
* `VPKeyRegistryLogic.sol` (`commissionBps >= 10000` reverts).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,gIAAgI;AAChI,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,yKAAyK;AACzK,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,iEAAiE;AACjE,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD,sEAAsE;AACtE,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,SAAS,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,6EAA6E;AAC7E,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAE/C,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD,sFAAsF;AACtF,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,+EAA+E;AAC/E,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,0CAA0C,IAAI,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,IAAI,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,IAAI,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,IAAI,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,+BAA+B,aAAa,CAAC;AAC1D,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,8BAA8B,aAAa,CAAC;AAEzD,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,0FAA0F;AAC1F,eAAO,MAAM,uCAAuC,IAAI,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,QAAS,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAS,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AssertPayoutNoPayoutConnectorParams, Network } from '../../wasm';
|
|
2
|
+
import { Transaction } from 'bitcoinjs-lib';
|
|
2
3
|
/**
|
|
3
4
|
* Parameters for building a NoPayout PSBT
|
|
4
5
|
*/
|
|
@@ -43,4 +44,45 @@ export declare function buildNoPayoutPsbt(params: NoPayoutParams): Promise<strin
|
|
|
43
44
|
* scriptPubKey for the challenger
|
|
44
45
|
*/
|
|
45
46
|
export declare function assertNoPayoutOutputMatchesChallenger(noPayoutTxHex: string, challengerPubkey: string, network: Network): void;
|
|
47
|
+
/**
|
|
48
|
+
* Parameters for {@link assertCanonicalNoPayoutShape}
|
|
49
|
+
*/
|
|
50
|
+
export interface AssertCanonicalNoPayoutShapeParams {
|
|
51
|
+
/** The NoPayout transaction the VP supplied */
|
|
52
|
+
noPayoutTx: Transaction;
|
|
53
|
+
/** Authoritative Assert txid (display hex) */
|
|
54
|
+
assertTxid: string;
|
|
55
|
+
/** Canonical ChallengeAssertX txid (display hex) */
|
|
56
|
+
challengeAssertXTxid: string;
|
|
57
|
+
/** Canonical ChallengeAssertY txid (display hex) */
|
|
58
|
+
challengeAssertYTxid: string;
|
|
59
|
+
/** ChallengeAssert CSV timelock in blocks (offchain param `timelockChallengeAssert`) */
|
|
60
|
+
timelockChallengeAssert: number;
|
|
61
|
+
/** Values of Assert:0, ChallengeAssertX:0 and ChallengeAssertY:0, in input order */
|
|
62
|
+
prevoutValues: readonly [number, number, number];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Require a VP-supplied NoPayout to have the shape btc-vault `NoPayoutTx::new`
|
|
66
|
+
* builds over the canonical parents
|
|
67
|
+
* (`crates/vault/src/transactions/nopayout.rs:148-209` @ b534ff9e): version 2,
|
|
68
|
+
* locktime 0, and exactly the inputs Assert:0, ChallengeAssertX:0 and
|
|
69
|
+
* ChallengeAssertY:0, in that order, with sequences `0xffffffff`, `t`, `t`.
|
|
70
|
+
*
|
|
71
|
+
* The depositor's signature commits to every one of these fields. The
|
|
72
|
+
* challenge window itself is enforced by the ChallengeAssert output connector's
|
|
73
|
+
* NoPayout leaf (`<challenger> CHECKSIGVERIFY <t> CSV`), which the txid binding
|
|
74
|
+
* of both parents pins: a NoPayout with a shorter or disabled sequence, or
|
|
75
|
+
* below version 2, fails that CSV and is invalid rather than early. Pinning the
|
|
76
|
+
* inputs, sequences, version and locktime to btc-vault's layout keeps the
|
|
77
|
+
* signature on a NoPayout that satisfies that CSV. The output value is not
|
|
78
|
+
* pinned to btc-vault's (the inputs minus its fee); it is only required not to
|
|
79
|
+
* exceed the inputs, since a larger output could never be valid. The output
|
|
80
|
+
* script is checked by {@link assertNoPayoutOutputMatchesChallenger}.
|
|
81
|
+
*
|
|
82
|
+
* @param params - The supplied NoPayout and the authoritative parents
|
|
83
|
+
* @throws If any input, sequence, version or locktime differs from the
|
|
84
|
+
* canonical layout, the timelock is not a valid relative timelock, or the
|
|
85
|
+
* output value exceeds the inputs
|
|
86
|
+
*/
|
|
87
|
+
export declare function assertCanonicalNoPayoutShape(params: AssertCanonicalNoPayoutShapeParams): void;
|
|
46
88
|
//# sourceMappingURL=noPayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noPayout.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/noPayout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,OAAO,EAGb,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"noPayout.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/primitives/psbt/noPayout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,OAAO,EAGb,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAQ,WAAW,EAAY,MAAM,eAAe,CAAC;AAsB5D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,wGAAwG;IACxG,QAAQ,EAAE,KAAK,CAAC;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1D,0DAA0D;IAC1D,eAAe,EAAE,mCAAmC,CAAC;CACtD;AAED;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,MAAM,CAAC,CA6DjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qCAAqC,CACnD,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,OAAO,GACf,IAAI,CAyBN;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,+CAA+C;IAC/C,UAAU,EAAE,WAAW,CAAC;IACxB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,wFAAwF;IACxF,uBAAuB,EAAE,MAAM,CAAC;IAChC,oFAAoF;IACpF,aAAa,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,kCAAkC,GACzC,IAAI,CAqEN"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Depositor-graph presigning through the real WASM on a graph-v3 depositor
|
|
3
|
+
* graph built by btc-vault's own code (the watchtower-artifacts fixture, see
|
|
4
|
+
* `delegated-claim/__tests__/fixtures/watchtowerArtifactsV3/README.md`).
|
|
5
|
+
*
|
|
6
|
+
* The other signDepositorGraph tests mock the primitives; this file proves an
|
|
7
|
+
* honest btc-vault graph clears every check and reaches the wallet, and that
|
|
8
|
+
* a VP substituting a NoPayout's ChallengeAssert parents is refused before
|
|
9
|
+
* the wallet is asked to sign.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=signDepositorGraph.realGraph.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signDepositorGraph.realGraph.test.d.ts","sourceRoot":"","sources":["../../../../../../src/tbv/core/services/deposit/__tests__/signDepositorGraph.realGraph.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -33,6 +33,13 @@ export interface PayoutSigningContext {
|
|
|
33
33
|
* Required for the depositor-graph NoPayout local rebuild.
|
|
34
34
|
*/
|
|
35
35
|
timelockAssert: number;
|
|
36
|
+
/**
|
|
37
|
+
* ChallengeAssert CSV timelock from the locked offchain params version
|
|
38
|
+
* (blocks). Source: ProtocolParams contract via
|
|
39
|
+
* `ViemProtocolParamsReader.getOffchainParamsByVersion(...).timelockChallengeAssert`.
|
|
40
|
+
* Required to bind each NoPayout's ChallengeAssert parents before signing.
|
|
41
|
+
*/
|
|
42
|
+
timelockChallengeAssert: number;
|
|
36
43
|
/**
|
|
37
44
|
* Security council member x-only public keys (hex, no prefix).
|
|
38
45
|
* Source: ProtocolParams contract via
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runDepositorPresignFlow.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/runDepositorPresignFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAM3E,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"runDepositorPresignFlow.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/runDepositorPresignFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAM3E,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAYrE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,yDAAyD;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;;OAKG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,4BAA4B,EAAE,MAAM,CAAC;IACrC,iGAAiG;IACjG,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D;;;OAGG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,6BAA6B;IAC5C,yDAAyD;IACzD,YAAY,EAAE,iBAAiB,CAAC;IAChC,oEAAoE;IACpE,aAAa,EAAE,aAAa,CAAC;IAC7B,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,cAAc,EAAE,oBAAoB,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sEAAsE;IACtE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD;;;;;;;;;OASG;IACH,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAoRD;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAgNf"}
|
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
import { Network } from '@babylonlabs-io/babylon-tbv-rust-wasm';
|
|
2
2
|
import { BitcoinWallet } from '../../../../shared/wallets/interfaces';
|
|
3
|
-
import { DepositorAsClaimerPresignatures, DepositorGraphTransactions } from '../../clients/vault-provider/types';
|
|
3
|
+
import { DepositorAsClaimerPresignatures, DepositorGraphTransactions, PresignDataPerChallenger } from '../../clients/vault-provider/types';
|
|
4
|
+
/** One challenger's NoPayout, checked against its canonical parents. */
|
|
5
|
+
export interface CheckedNoPayout {
|
|
6
|
+
/** The challenger's entry in the VP response */
|
|
7
|
+
challenger: PresignDataPerChallenger;
|
|
8
|
+
/** The challenger's x-only key (hex, no 0x prefix) */
|
|
9
|
+
challengerPubkey: string;
|
|
10
|
+
/** Assert:0, ChallengeAssertX:0 and ChallengeAssertY:0, in NoPayout input order */
|
|
11
|
+
prevouts: Array<{
|
|
12
|
+
script_pubkey: string;
|
|
13
|
+
value: number;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
/** The NoPayout side of a depositor graph, checked and ready to build. */
|
|
17
|
+
export interface CheckedDepositorGraphNoPayouts {
|
|
18
|
+
/** The depositor-as-claimer's local challengers, derived from the context */
|
|
19
|
+
localChallengers: string[];
|
|
20
|
+
/** One entry per challenger, in the VP's order */
|
|
21
|
+
noPayouts: CheckedNoPayout[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check everything on the NoPayout side of the depositor graph that needs no
|
|
25
|
+
* wallet: the challenger set equals `local ∪ universal`, the Assert carries
|
|
26
|
+
* one ConnectorX and one ConnectorY per challenger, and for every challenger
|
|
27
|
+
* the ChallengeAssertX/Y are the canonical transactions for this Assert, the
|
|
28
|
+
* NoPayout spends exactly them with the canonical sequences, and it pays the
|
|
29
|
+
* challenger's BIP-86 key.
|
|
30
|
+
*
|
|
31
|
+
* `runDepositorPresignFlow` calls this before the deposit-terms approval and
|
|
32
|
+
* every payout signing prompt. `signDepositorGraph` calls it again because it
|
|
33
|
+
* is also a public entry point.
|
|
34
|
+
*
|
|
35
|
+
* @param depositorGraph - The depositor graph from the VP response
|
|
36
|
+
* @param ctx - Authoritative inputs the graph is checked against
|
|
37
|
+
* @returns The checked per-challenger data the NoPayout PSBTs are built from
|
|
38
|
+
* @throws If any check fails
|
|
39
|
+
*/
|
|
40
|
+
export declare function assertDepositorGraphNoPayoutsCanonical(depositorGraph: DepositorGraphTransactions, ctx: DepositorGraphSigningContext): Promise<CheckedDepositorGraphNoPayouts>;
|
|
4
41
|
/**
|
|
5
42
|
* Authoritative inputs required to construct the depositor's Payout AND every
|
|
6
43
|
* per-challenger NoPayout PSBT locally. Every field here must come from
|
|
@@ -37,6 +74,14 @@ export interface DepositorGraphSigningContext {
|
|
|
37
74
|
* `ViemProtocolParamsReader.getOffchainParamsByVersion(...).timelockAssert`.
|
|
38
75
|
*/
|
|
39
76
|
timelockAssert: number;
|
|
77
|
+
/**
|
|
78
|
+
* ChallengeAssert CSV timelock from the locked offchain params version
|
|
79
|
+
* (blocks). Sourced from the on-chain ProtocolParams contract via
|
|
80
|
+
* `ViemProtocolParamsReader.getOffchainParamsByVersion(...).timelockChallengeAssert`.
|
|
81
|
+
* Each NoPayout's ChallengeAssert inputs must carry it as their sequence,
|
|
82
|
+
* and it is part of the connector their ChallengeAssert parents pay to.
|
|
83
|
+
*/
|
|
84
|
+
timelockChallengeAssert: number;
|
|
40
85
|
/**
|
|
41
86
|
* Security council member x-only public keys (hex, no prefix). Sourced from
|
|
42
87
|
* the on-chain ProtocolParams contract via
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"signDepositorGraph.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/deposit/signDepositorGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGrE,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAE1B,wBAAwB,EACzB,MAAM,oCAAoC,CAAC;AAuJ5C,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,UAAU,EAAE,wBAAwB,CAAC;IACrC,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,QAAQ,EAAE,KAAK,CAAC;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3D;AAED,0EAA0E;AAC1E,MAAM,WAAW,8BAA8B;IAC7C,6EAA6E;IAC7E,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kDAAkD;IAClD,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,sCAAsC,CAC1D,cAAc,EAAE,0BAA0B,EAC1C,GAAG,EAAE,4BAA4B,GAChC,OAAO,CAAC,8BAA8B,CAAC,CA2CzC;AAyRD;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kEAAkE;IAClE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,0EAA0E;IAC1E,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,0EAA0E;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;;OAKG;IACH,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/D,uEAAuE;IACvE,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,cAAc,EAAE,0BAA0B,CAAC;IAC3C,iCAAiC;IACjC,SAAS,EAAE,aAAa,CAAC;IACzB,8DAA8D;IAC9D,cAAc,EAAE,4BAA4B,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,+BAA+B,CAAC,CAiD1C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../PayoutManager-B1Ev0r7o.cjs"),t=require("../../../buildAndBroadcastReclaim-CE77jzTp.cjs"),i=require("../wasm/index.cjs"),e=require("../../../peginState-IyE22wWh.cjs"),a=require("../../../state-C4WoNCy1.cjs");exports.computeHashlock=r.computeHashlock;exports.validateSecretAgainstHashlock=r.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.AssertBindingError=t.AssertBindingError;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.DelegatedClaimSigningIncompleteError=t.DelegatedClaimSigningIncompleteError;exports.GraphFingerprintError=t.GraphFingerprintError;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;exports.PayoutInputLeafError=t.PayoutInputLeafError;exports.PeginRegistrationMissingError=t.PeginRegistrationMissingError;exports.PeginRegistrationNotFinalError=t.PeginRegistrationNotFinalError;exports.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR=t.RECLAIM_MAX_FEE_FRACTION_DENOMINATOR;exports.RECLAIM_MAX_FEE_FRACTION_NUMERATOR=t.RECLAIM_MAX_FEE_FRACTION_NUMERATOR;exports.RECLAIM_MAX_FEE_RATE_SATS_VB=t.RECLAIM_MAX_FEE_RATE_SATS_VB;exports.RECLAIM_WARN_FEE_FRACTION_NUMERATOR=t.RECLAIM_WARN_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=t.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=t.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=t.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=t.REFUND_VSIZE;exports.ReclaimUneconomicalError=t.ReclaimUneconomicalError;exports.RegisteredVaultVersionMismatchError=t.RegisteredVaultVersionMismatchError;exports.SigningPlanMismatchError=t.SigningPlanMismatchError;exports.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assembleWatchtowerArtifactsFromSignatures=t.assembleWatchtowerArtifactsFromSignatures;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertAssertBindsClaimAndPayout=t.assertAssertBindsClaimAndPayout;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertReturnedGraphMatchesFingerprint=t.assertReturnedGraphMatchesFingerprint;exports.assertTermsMatchVault=t.assertTermsMatchVault;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.claimExpiredVault=t.claimExpiredVault;exports.copyAssertConnectorLeaf=t.copyAssertConnectorLeaf;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;exports.fingerprintReturnedGraph=t.fingerprintReturnedGraph;exports.isApplicationEntryPointMismatchError=t.isApplicationEntryPointMismatchError;exports.isDepositAmountValid=t.isDepositAmountValid;exports.isHintAccepted=t.isHintAccepted;exports.isParticipantKeyDriftError=t.isParticipantKeyDriftError;exports.isPeginRegistrationMissingError=t.isPeginRegistrationMissingError;exports.isPeginRegistrationNotFinalError=t.isPeginRegistrationNotFinalError;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.planDelegatedClaimSigning=t.planDelegatedClaimSigning;exports.readDelegatedClaimVaultContext=t.readDelegatedClaimVaultContext;exports.readStampedParticipantKeys=t.readStampedParticipantKeys;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDelegatedClaimPlan=t.signDelegatedClaimPlan;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;exports.summarizeWatchtowerArtifacts=t.summarizeWatchtowerArtifacts;exports.validateDepositAmount=t.validateDepositAmount;exports.validateMultiVaultDepositInputs=t.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=t.validateOnChainParticipantKeys;exports.validateProviderSelection=t.validateProviderSelection;exports.validateRemainingCapacity=t.validateRemainingCapacity;exports.validateVaultAmounts=t.validateVaultAmounts;exports.validateVaultProviderPubkey=t.validateVaultProviderPubkey;exports.verifyRegisteredParticipantKeys=t.verifyRegisteredParticipantKeys;exports.verifyRegisteredVaultVersions=t.verifyRegisteredVaultVersions;exports.waitForPeginRegistrationDepth=t.waitForPeginRegistrationDepth;exports.waitForPeginStatus=t.waitForPeginStatus;exports.attachFinalizedAssert=i.attachFinalizedAssert;exports.finalizePayout=i.finalizePayout;exports.finalizeWronglyChallenged=i.finalizeWronglyChallenged;exports.pinPegoutProof=i.pinPegoutProof;exports.ContractStatus=e.ContractStatus;exports.PeginAction=e.PeginAction;exports.activationDeadlineBlocksRemaining=e.activationDeadlineBlocksRemaining;exports.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;exports.ClaimerPegoutStatusValue=a.ClaimerPegoutStatusValue;exports.isPegoutTerminalStatus=a.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=a.isRecognizedPegoutStatus;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, v as e } from "../../../PayoutManager-
|
|
2
|
-
import { J as r, l as n, A as o, a8 as l, C as c, D as E, n as g, G as A, u as d, W as u, P as R, j as m, v as p, w as P, ah as _, ai as C, aj as M, ak as h, ab as F, ac as S, ad as V, ae as f, af as y, Z as N, S as D, V as I, a as v, b as T, d as O, e as K, m as b, f as B, g as U, t as H, i as L, B as x, o as G, a1 as W, ag as X, a9 as w, c as k, k as z, h as j, aa as Z, E as q, K as J, M as Q, a2 as Y, X as $, x as aa, y as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, q as ga, H as Aa, I as da, s as ua, N as Ra, O as ma, L as pa, Q as Pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Fa, z as Sa, a0 as Va } from "../../../buildAndBroadcastReclaim-
|
|
1
|
+
import { c as s, v as e } from "../../../PayoutManager-xEGvTbhL.js";
|
|
2
|
+
import { J as r, l as n, A as o, a8 as l, C as c, D as E, n as g, G as A, u as d, W as u, P as R, j as m, v as p, w as P, ah as _, ai as C, aj as M, ak as h, ab as F, ac as S, ad as V, ae as f, af as y, Z as N, S as D, V as I, a as v, b as T, d as O, e as K, m as b, f as B, g as U, t as H, i as L, B as x, o as G, a1 as W, ag as X, a9 as w, c as k, k as z, h as j, aa as Z, E as q, K as J, M as Q, a2 as Y, X as $, x as aa, y as ta, _ as sa, a3 as ea, a4 as ia, p as ra, r as na, a5 as oa, a6 as la, a7 as ca, F as Ea, q as ga, H as Aa, I as da, s as ua, N as Ra, O as ma, L as pa, Q as Pa, R as _a, T as Ca, U as Ma, Y as ha, $ as Fa, z as Sa, a0 as Va } from "../../../buildAndBroadcastReclaim-rQyAiAUS.js";
|
|
3
3
|
import { attachFinalizedAssert as ya, finalizePayout as Na, finalizeWronglyChallenged as Da, pinPegoutProof as Ia } from "../wasm/index.js";
|
|
4
4
|
import { C as Ta, P as Oa, a as Ka, c as ba, g as Ba, i as Ua } from "../../../peginState-CIibG9S_.js";
|
|
5
5
|
import { C as La, g as xa, f as Ga } from "../../../state-CFn1rT74.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"challengeAssertOutputConnector.test.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/wasm/__tests__/challengeAssertOutputConnector.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var d=Object.create;var l=Object.defineProperty;var
|
|
1
|
+
"use strict";var d=Object.create;var l=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var h=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!b.call(t,i)&&i!==n&&l(t,i,{get:()=>e[i],enumerable:!(r=g(e,i))||r.enumerable});return t};var w=(t,e,n)=>(n=t!=null?d(p(t)):{},h(e||!t||!t.__esModule?l(n,"default",{value:t,enumerable:!0}):n,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",o=2,A=Uint8Array.from({length:s.length/o},(t,e)=>Number.parseInt(s.slice(e*o,e*o+o),16));let u;function a(){return u??(u=import("@babylonlabs-io/babylon-tbv-rust-wasm").catch(t=>{throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm failed to load. The module could not be resolved, or it threw while evaluating, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:t})}).then(async t=>{try{await t.initWasm()}catch(e){throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm resolved, but its WebAssembly binary failed to initialize, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:e})}return t})),u}async function m(t){return(await a()).createPrePeginTransaction(t)}async function S(t,e,n,r){return(await a()).buildPeginTxFromPrePegin(t,e,n,r)}async function C(t){return(await a()).getPrePeginHtlcConnectorInfo(t)}async function T(t,e,n,r,i,c){return(await a()).computeMinClaimValue(t,e,n,r,i,c)}async function W(t,e,n,r){return(await a()).computeMinPeginFee(t,e,n,r)}async function v(t,e,n,r,i,c,y,P){return(await a()).computePayoutFeeFloor(t,e,n,r,i,c,y,P)}async function x(){return(await a()).supportedTxGraphVersions()}async function I(t){return(await a()).peginP2aAnchorOutput(t)}async function F(t,e){return(await a()).validatePeginP2aAnchor(t,e)}async function z(t,e){return(await a()).createPayoutConnector(t,e)}async function M(t){return(await a()).getAssertPayoutScriptInfo(t)}async function K(t,e){return(await a()).getAssertNoPayoutScriptInfo(t,e)}async function E(t){return(await a()).getChallengeAssertScriptInfo(t)}async function V(t){return(await a()).getChallengeAssertOutputScriptPubKey(t)}async function H(t){return(await a()).expandAuthAnchor(t)}async function N(t,e){return(await a()).expandHashlockSecret(t,e)}async function _(t,e){return(await a()).expandWotsSeed(t,e)}async function O(t,e){return(await a()).deriveVaultId(t,e)}async function G(t,e){return(await a()).buildClaimPsbt(t,e)}async function k(t,e){return(await a()).buildAssertClaimerPsbt(t,e)}async function R(t,e){return(await a()).buildPayoutClaimerPsbt(t,e)}async function D(t,e){return(await a()).buildPayoutDepositorPsbt(t,e)}async function Y(t,e){return(await a()).buildWronglyChallengedPsbts(t,e)}async function L(t,e,n){return(await a()).pinPegoutProof(t,e,n)}async function j(t,e,n){return(await a()).attachFinalizedAssert(t,e,n)}async function B(t,e){return(await a()).finalizePayout(t,e)}async function U(t,e,n,r,i){return(await a()).finalizeWronglyChallenged(t,e,n,r,i)}async function X(t,e,n){return(await a()).finalizeClaimTx(t,e,n)}async function q(t,e){return(await a()).extractTapScriptSig(t,e)}async function J(t){return(await a()).wotsKeypairFromSeed(t)}async function Q(t,e,n){return(await a()).validateWotsKeypairAgainstGraph(t,e,n)}async function Z(t){return(await a()).buildWatchtowerArtifacts(t)}async function $(t,e){return(await a()).verifyWatchtowerArtifacts(t,e)}exports.TAP_INTERNAL_KEY=s;exports.attachFinalizedAssert=j;exports.buildAssertClaimerPsbt=k;exports.buildClaimPsbt=G;exports.buildPayoutClaimerPsbt=R;exports.buildPayoutDepositorPsbt=D;exports.buildPeginTxFromPrePegin=S;exports.buildWatchtowerArtifacts=Z;exports.buildWronglyChallengedPsbts=Y;exports.computeMinClaimValue=T;exports.computeMinPeginFee=W;exports.computePayoutFeeFloor=v;exports.createPayoutConnector=z;exports.createPrePeginTransaction=m;exports.deriveVaultId=O;exports.expandAuthAnchor=H;exports.expandHashlockSecret=N;exports.expandWotsSeed=_;exports.extractTapScriptSig=q;exports.finalizeClaimTx=X;exports.finalizePayout=B;exports.finalizeWronglyChallenged=U;exports.getAssertNoPayoutScriptInfo=K;exports.getAssertPayoutScriptInfo=M;exports.getChallengeAssertOutputScriptPubKey=V;exports.getChallengeAssertScriptInfo=E;exports.getPrePeginHtlcConnectorInfo=C;exports.loadTbvWasm=a;exports.peginP2aAnchorOutput=I;exports.pinPegoutProof=L;exports.supportedTxGraphVersions=x;exports.tapInternalPubkey=A;exports.validatePeginP2aAnchor=F;exports.validateWotsKeypairAgainstGraph=Q;exports.verifyWatchtowerArtifacts=$;exports.wotsKeypairFromSeed=J;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|