@babylonlabs-io/ts-sdk 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/{signPsbtsWithFallback-DoRbHHua.js → PayoutManager-CHTOwj0E.js} +25 -25
  2. package/dist/PayoutManager-CHTOwj0E.js.map +1 -0
  3. package/dist/PayoutManager-CpfQjtL0.cjs +2 -0
  4. package/dist/PayoutManager-CpfQjtL0.cjs.map +1 -0
  5. package/dist/PeginManager-6tjlGd0t.cjs +2 -0
  6. package/dist/PeginManager-6tjlGd0t.cjs.map +1 -0
  7. package/dist/{PeginManager-BH_AKu4l.js → PeginManager-DEldv_Ro.js} +21 -20
  8. package/dist/PeginManager-DEldv_Ro.js.map +1 -0
  9. package/dist/buildAndBroadcastReclaim-BwT6Jxp5.cjs +2 -0
  10. package/dist/buildAndBroadcastReclaim-BwT6Jxp5.cjs.map +1 -0
  11. package/dist/buildAndBroadcastReclaim-CqO2DoP8.js +1919 -0
  12. package/dist/buildAndBroadcastReclaim-CqO2DoP8.js.map +1 -0
  13. package/dist/challengeAssert-Cp_GeRg8.js.map +1 -1
  14. package/dist/challengeAssert-Z7_YULBb.cjs.map +1 -1
  15. package/dist/deriveVaultRoot-BwbXmN0x.js +79 -0
  16. package/dist/{parseFundingOutpoints-BwC3foxS.cjs.map → deriveVaultRoot-BwbXmN0x.js.map} +1 -1
  17. package/dist/deriveVaultRoot-DvhkHzNb.cjs +2 -0
  18. package/dist/deriveVaultRoot-DvhkHzNb.cjs.map +1 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +286 -268
  21. package/dist/index.js.map +1 -1
  22. package/dist/noPayout-DAWBQ0eG.cjs.map +1 -1
  23. package/dist/noPayout-qBXWKwav.js.map +1 -1
  24. package/dist/onChainBtcPubkey-BXry_CM4.cjs +2 -0
  25. package/dist/onChainBtcPubkey-BXry_CM4.cjs.map +1 -0
  26. package/dist/onChainBtcPubkey-C1WqyxPM.js +159 -0
  27. package/dist/onChainBtcPubkey-C1WqyxPM.js.map +1 -0
  28. package/dist/parseFundingOutpoints-C_-PT9BT.cjs +2 -0
  29. package/dist/parseFundingOutpoints-C_-PT9BT.cjs.map +1 -0
  30. package/dist/parseFundingOutpoints-GSM-IaaK.js +17 -0
  31. package/dist/parseFundingOutpoints-GSM-IaaK.js.map +1 -0
  32. package/dist/{pegin-registration-client-pcczkzMg.js → pegin-registration-client-1sZ-74UC.js} +260 -383
  33. package/dist/pegin-registration-client-1sZ-74UC.js.map +1 -0
  34. package/dist/pegin-registration-client-BNV44jzw.cjs +2 -0
  35. package/dist/pegin-registration-client-BNV44jzw.cjs.map +1 -0
  36. package/dist/signing-3l5Aqd-H.cjs +2 -0
  37. package/dist/signing-3l5Aqd-H.cjs.map +1 -0
  38. package/dist/signing-Dhr2t0Z6.js +39 -0
  39. package/dist/signing-Dhr2t0Z6.js.map +1 -0
  40. package/dist/tbv/core/clients/eth/index.cjs +1 -1
  41. package/dist/tbv/core/clients/eth/index.js +8 -8
  42. package/dist/tbv/core/clients/index.cjs +1 -1
  43. package/dist/tbv/core/clients/index.js +8 -8
  44. package/dist/tbv/core/index.cjs +1 -1
  45. package/dist/tbv/core/index.js +284 -266
  46. package/dist/tbv/core/index.js.map +1 -1
  47. package/dist/tbv/core/managers/PayoutManager.d.ts +1 -1
  48. package/dist/tbv/core/managers/PeginManager.d.ts +1 -1
  49. package/dist/tbv/core/managers/index.cjs +1 -1
  50. package/dist/tbv/core/managers/index.js +2 -2
  51. package/dist/tbv/core/primitives/index.d.ts +1 -1
  52. package/dist/tbv/core/primitives/psbt/challengeAssert.d.ts +2 -2
  53. package/dist/tbv/core/primitives/psbt/challengeAssert.d.ts.map +1 -1
  54. package/dist/tbv/core/primitives/psbt/noPayout.d.ts +1 -1
  55. package/dist/tbv/core/primitives/psbt/noPayout.d.ts.map +1 -1
  56. package/dist/tbv/core/primitives/psbt/payout.d.ts +13 -7
  57. package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
  58. package/dist/tbv/core/services/delegated-claim/__tests__/assembleWatchtowerArtifacts.test.d.ts +15 -0
  59. package/dist/tbv/core/services/delegated-claim/__tests__/assembleWatchtowerArtifacts.test.d.ts.map +1 -0
  60. package/dist/tbv/core/services/delegated-claim/__tests__/deriveClaimerWotsKeypair.test.d.ts +11 -0
  61. package/dist/tbv/core/services/delegated-claim/__tests__/deriveClaimerWotsKeypair.test.d.ts.map +1 -0
  62. package/dist/tbv/core/services/delegated-claim/__tests__/readWatchtowerArtifacts.test.d.ts +10 -0
  63. package/dist/tbv/core/services/delegated-claim/__tests__/readWatchtowerArtifacts.test.d.ts.map +1 -0
  64. package/dist/tbv/core/services/delegated-claim/__tests__/vaultIdBinding.test.d.ts +10 -0
  65. package/dist/tbv/core/services/delegated-claim/__tests__/vaultIdBinding.test.d.ts.map +1 -0
  66. package/dist/tbv/core/services/delegated-claim/__tests__/wotsKeypair.golden.test.d.ts +11 -0
  67. package/dist/tbv/core/services/delegated-claim/__tests__/wotsKeypair.golden.test.d.ts.map +1 -0
  68. package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +46 -0
  69. package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -0
  70. package/dist/tbv/core/services/delegated-claim/challengerBinding.d.ts +72 -0
  71. package/dist/tbv/core/services/delegated-claim/challengerBinding.d.ts.map +1 -0
  72. package/dist/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.d.ts +63 -0
  73. package/dist/tbv/core/services/delegated-claim/deriveClaimerWotsKeypair.d.ts.map +1 -0
  74. package/dist/tbv/core/services/delegated-claim/index.d.ts +55 -0
  75. package/dist/tbv/core/services/delegated-claim/index.d.ts.map +1 -0
  76. package/dist/tbv/core/services/delegated-claim/payoutBinding.d.ts +65 -0
  77. package/dist/tbv/core/services/delegated-claim/payoutBinding.d.ts.map +1 -0
  78. package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +70 -0
  79. package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -0
  80. package/dist/tbv/core/services/delegated-claim/types.d.ts +105 -0
  81. package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -0
  82. package/dist/tbv/core/services/delegated-claim/vaultIdBinding.d.ts +44 -0
  83. package/dist/tbv/core/services/delegated-claim/vaultIdBinding.d.ts.map +1 -0
  84. package/dist/tbv/core/services/index.cjs +1 -1
  85. package/dist/tbv/core/services/index.d.ts +1 -0
  86. package/dist/tbv/core/services/index.d.ts.map +1 -1
  87. package/dist/tbv/core/services/index.js +73 -56
  88. package/dist/tbv/core/services/index.js.map +1 -1
  89. package/dist/tbv/core/utils/index.cjs +1 -1
  90. package/dist/tbv/core/utils/index.js +44 -43
  91. package/dist/tbv/core/utils/signing.d.ts +24 -0
  92. package/dist/tbv/core/utils/signing.d.ts.map +1 -1
  93. package/dist/tbv/core/vault-secrets/index.cjs +1 -1
  94. package/dist/tbv/core/vault-secrets/index.js +9 -8
  95. package/dist/tbv/core/vault-secrets/index.js.map +1 -1
  96. package/dist/tbv/core/wasm/index.cjs +1 -1
  97. package/dist/tbv/core/wasm/index.cjs.map +1 -1
  98. package/dist/tbv/core/wasm/index.d.ts +102 -5
  99. package/dist/tbv/core/wasm/index.d.ts.map +1 -1
  100. package/dist/tbv/core/wasm/index.js +170 -73
  101. package/dist/tbv/core/wasm/index.js.map +1 -1
  102. package/dist/tbv/index.cjs +1 -1
  103. package/dist/tbv/index.js +284 -266
  104. package/dist/tbv/index.js.map +1 -1
  105. package/dist/tbv/integrations/aave/clients/abis/AaveSpoke.abi.json.d.ts +18 -0
  106. package/dist/tbv/integrations/aave/clients/index.d.ts +1 -1
  107. package/dist/tbv/integrations/aave/clients/index.d.ts.map +1 -1
  108. package/dist/tbv/integrations/aave/clients/spoke.d.ts +17 -0
  109. package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
  110. package/dist/tbv/integrations/aave/constants.d.ts +8 -0
  111. package/dist/tbv/integrations/aave/constants.d.ts.map +1 -1
  112. package/dist/tbv/integrations/aave/index.cjs +1 -1
  113. package/dist/tbv/integrations/aave/index.cjs.map +1 -1
  114. package/dist/tbv/integrations/aave/index.d.ts +2 -2
  115. package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
  116. package/dist/tbv/integrations/aave/index.js +119 -110
  117. package/dist/tbv/integrations/aave/index.js.map +1 -1
  118. package/dist/tbv/integrations/aave/types.d.ts +1 -1
  119. package/dist/toRefundInputs-BaN9XluU.cjs +2 -0
  120. package/dist/{toRefundInputs-DEPXcrgO.cjs.map → toRefundInputs-BaN9XluU.cjs.map} +1 -1
  121. package/dist/{toRefundInputs-BEulLgN_.js → toRefundInputs-mtuuYezp.js} +23 -22
  122. package/dist/{toRefundInputs-BEulLgN_.js.map → toRefundInputs-mtuuYezp.js.map} +1 -1
  123. package/dist/{types-B9YhlXe8.js → types-BdCEoANP.js} +2 -2
  124. package/dist/{types-B9YhlXe8.js.map → types-BdCEoANP.js.map} +1 -1
  125. package/dist/{types-C1tpDycc.cjs → types-BuxreSq4.cjs} +2 -2
  126. package/dist/{types-C1tpDycc.cjs.map → types-BuxreSq4.cjs.map} +1 -1
  127. package/dist/verifyScriptPathSchnorrSignature-BKZihCjk.cjs.map +1 -1
  128. package/dist/verifyScriptPathSchnorrSignature-CpjSTfMj.js.map +1 -1
  129. package/package.json +3 -3
  130. package/dist/PeginManager-BCJWwV05.cjs +0 -2
  131. package/dist/PeginManager-BCJWwV05.cjs.map +0 -1
  132. package/dist/PeginManager-BH_AKu4l.js.map +0 -1
  133. package/dist/buildAndBroadcastReclaim-DLsf5hjO.cjs +0 -2
  134. package/dist/buildAndBroadcastReclaim-DLsf5hjO.cjs.map +0 -1
  135. package/dist/buildAndBroadcastReclaim-OMvihzJg.js +0 -1545
  136. package/dist/buildAndBroadcastReclaim-OMvihzJg.js.map +0 -1
  137. package/dist/onChainBtcPubkey-BbxRrbvg.cjs +0 -2
  138. package/dist/onChainBtcPubkey-BbxRrbvg.cjs.map +0 -1
  139. package/dist/onChainBtcPubkey-C-6UWpD8.js +0 -34
  140. package/dist/onChainBtcPubkey-C-6UWpD8.js.map +0 -1
  141. package/dist/parseFundingOutpoints-BwC3foxS.cjs +0 -2
  142. package/dist/parseFundingOutpoints-CC4NKYz2.js +0 -93
  143. package/dist/parseFundingOutpoints-CC4NKYz2.js.map +0 -1
  144. package/dist/pegin-registration-client-CZgcU2_0.cjs +0 -2
  145. package/dist/pegin-registration-client-CZgcU2_0.cjs.map +0 -1
  146. package/dist/pegin-registration-client-pcczkzMg.js.map +0 -1
  147. package/dist/signPsbtsWithFallback-DoRbHHua.js.map +0 -1
  148. package/dist/signPsbtsWithFallback-FwrTYZS4.cjs +0 -2
  149. package/dist/signPsbtsWithFallback-FwrTYZS4.cjs.map +0 -1
  150. package/dist/signing-BJ3X66b-.cjs +0 -2
  151. package/dist/signing-BJ3X66b-.cjs.map +0 -1
  152. package/dist/signing-Cm-McVR2.js +0 -22
  153. package/dist/signing-Cm-McVR2.js.map +0 -1
  154. package/dist/toRefundInputs-DEPXcrgO.cjs +0 -2
@@ -0,0 +1,105 @@
1
+ import { Hex } from 'viem';
2
+ /**
3
+ * The small, non-opaque fields of an `artifacts.json` file.
4
+ *
5
+ * @experimental
6
+ */
7
+ export interface WatchtowerArtifactsSummary {
8
+ /**
9
+ * Vault Core version the file records, absent on files written before the
10
+ * field existed. `assertArtifactsUsableForVault` refuses a file whose
11
+ * value differs from the version it verifies under.
12
+ */
13
+ vaultCoreVersion?: number;
14
+ /** 32-byte on-chain vault id, as the file records it. */
15
+ vaultId: string;
16
+ /** Txid of the fully signed Claim transaction the file carries. */
17
+ claimTxid: string;
18
+ /**
19
+ * Txid of the PegIn output that Claim spends. Together with the depositor's
20
+ * Ethereum address this derives the vault id, which is the only check that
21
+ * binds the file's graph to a vault — `vault_id` itself is self-declared.
22
+ */
23
+ peginTxid: string;
24
+ proverCircuitVersion: number;
25
+ /**
26
+ * Block of the finalized `VaultClaimableBy` event, or `0n` when the file was
27
+ * assembled before the Ethereum withdrawal was initiated. A claim run
28
+ * against zero proves the wrong block and fails before Assert, so
29
+ * `assertArtifactsUsableForVault` refuses it.
30
+ *
31
+ * `bigint`, matching {@link DelegatedClaimVaultContext} and the WASM
32
+ * boundary — a block number is a u64 there.
33
+ */
34
+ claimableEventBlockNumber: bigint;
35
+ /** Hex challenger public keys the file carries BaBe sessions for. */
36
+ babeSessionChallengerPubkeys: string[];
37
+ }
38
+ /**
39
+ * Inputs the vault provider supplies for artifact assembly.
40
+ *
41
+ * @experimental
42
+ */
43
+ export interface ClaimerArtifactsSource {
44
+ /** `tx_graph_json` from `requestDepositorClaimerArtifacts`. */
45
+ txGraphJson: string;
46
+ /**
47
+ * `verifying_key_hex` from the same response.
48
+ *
49
+ * Trusted from the vault provider. This value is written into the
50
+ * artifacts file and is the key `pinPegoutProof` later verifies the
51
+ * Groth16 proof against, so a provider that supplies a key of its own
52
+ * choosing makes that verification prove nothing. No registry read in
53
+ * this SDK exposes a verifying key, or a hash of one, per
54
+ * `proverCircuitVersion`, so there is nothing to compare it with yet.
55
+ * Obtain it over an authenticated channel, and re-check it here once the
56
+ * chain exposes an anchor.
57
+ */
58
+ verifyingKeyHex: string;
59
+ }
60
+ /**
61
+ * On-chain facts the assembled artifacts commit to.
62
+ *
63
+ * @experimental
64
+ */
65
+ export interface DelegatedClaimVaultContext {
66
+ vaultId: Hex;
67
+ /**
68
+ * Depositor's Ethereum address, the one the vault was registered under.
69
+ * With the PegIn txid it re-derives {@link DelegatedClaimVaultContext.vaultId},
70
+ * which is how a vault-provider-served graph is bound to this vault.
71
+ */
72
+ depositorEthAddress: Hex;
73
+ /**
74
+ * `depositorPayoutScriptPubKey` as the vault registered it on chain, hex.
75
+ * The Payout the vault provider builds is checked against this before the
76
+ * wallet signs it.
77
+ */
78
+ registeredPayoutScriptPubKey: string;
79
+ /** Vault provider's BTC public key, registered on chain for this vault. */
80
+ vaultProviderBtcPubkey: string;
81
+ /** Vault keepers registered on chain, the local challengers of this claim. */
82
+ vaultKeeperBtcPubkeys: string[];
83
+ /** Universal challengers registered on chain. */
84
+ universalChallengerBtcPubkeys: string[];
85
+ /** Graph (vault core) version of the vault. Delegated claim requires 3. */
86
+ txGraphVersion: number;
87
+ proverCircuitVersion: number;
88
+ /**
89
+ * Vault Core version from the finalized `PegInSubmitted` event. The builder
90
+ * refuses a graph that records a different one, which is what stops a graph
91
+ * built under other rules from being signed.
92
+ */
93
+ vaultCoreVersion: number;
94
+ /**
95
+ * Block of the finalized `VaultClaimableBy` event.
96
+ *
97
+ * Zero is accepted, because the file is meant to be assembled while the
98
+ * vault provider is still online, which can be long before the withdrawal
99
+ * is initiated. Such a file is not claimable as written: nothing in the SDK
100
+ * fills the field in later, and `assertArtifactsUsableForVault` refuses it.
101
+ * Pass the real block whenever the event has already finalized.
102
+ */
103
+ claimableEventBlockNumber: bigint;
104
+ }
105
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;;;;;OAQG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC,qEAAqE;IACrE,4BAA4B,EAAE,MAAM,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,GAAG,CAAC;IACb;;;;OAIG;IACH,mBAAmB,EAAE,GAAG,CAAC;IACzB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC,2EAA2E;IAC3E,sBAAsB,EAAE,MAAM,CAAC;IAC/B,8EAA8E;IAC9E,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,iDAAiD;IACjD,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,2EAA2E;IAC3E,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;;;;OAQG;IACH,yBAAyB,EAAE,MAAM,CAAC;CACnC"}
@@ -0,0 +1,44 @@
1
+ import { Transaction } from 'bitcoinjs-lib';
2
+ /**
3
+ * Thrown when a graph does not belong to the vault it is presented for.
4
+ *
5
+ * @experimental
6
+ */
7
+ export declare class VaultIdBindingError extends Error {
8
+ readonly expectedVaultId: string;
9
+ readonly derivedVaultId: string;
10
+ readonly peginTxid: string;
11
+ constructor(expectedVaultId: string, derivedVaultId: string, peginTxid: string);
12
+ }
13
+ /** Display-order txid of the PegIn output the Claim PSBT spends. */
14
+ export declare function peginTxidFromClaimPsbt(claimPsbtBase64: string): string;
15
+ /**
16
+ * Display-order txid of the PegIn output a signed Claim transaction spends.
17
+ */
18
+ export declare function peginTxidFromClaimTx(claimTx: Transaction): string;
19
+ /**
20
+ * The three values the on-chain vault id is derived from and compared with.
21
+ *
22
+ * @experimental
23
+ */
24
+ export interface AssertClaimSpendsVaultParams {
25
+ /** Display-order PegIn txid, from the Claim's first input. */
26
+ peginTxid: string;
27
+ /** Depositor's Ethereum address, the second half of the on-chain id. */
28
+ depositorEthAddress: string;
29
+ /** Vault id the graph or file claims to be for. */
30
+ expectedVaultId: string;
31
+ }
32
+ /**
33
+ * Throws unless the Claim's PegIn input derives the expected vault id.
34
+ *
35
+ * Experimental: this API can change in a minor release. Pin the SDK
36
+ * version if you build on it.
37
+ *
38
+ * @throws {@link VaultIdBindingError} when the graph belongs to another vault.
39
+ * @experimental
40
+ */
41
+ export declare function assertClaimSpendsVault(params: AssertClaimSpendsVaultParams): void;
42
+ /** Lowercase, `0x`-prefixed form of a 32-byte vault id. */
43
+ export declare function normalizeVaultId(vaultId: string): string;
44
+ //# sourceMappingURL=vaultIdBinding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vaultIdBinding.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/services/delegated-claim/vaultIdBinding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAQ,WAAW,EAAE,MAAM,eAAe,CAAC;AAWlD;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAE1C,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM;gBAFjB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM;CAU7B;AAED,oEAAoE;AACpE,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAYtE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAQjE;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mDAAmD;IACnD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,4BAA4B,GACnC,IAAI,CAQN;AAED,2DAA2D;AAC3D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGxD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../signPsbtsWithFallback-FwrTYZS4.cjs"),t=require("../../../buildAndBroadcastReclaim-DLsf5hjO.cjs"),i=require("../../../peginState-eaQ4IO_R.cjs");exports.computeHashlock=e.computeHashlock;exports.validateSecretAgainstHashlock=e.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=t.ClaimerPegoutStatusValue;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;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.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;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.isPegoutTerminalStatus=t.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=t.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;exports.signDepositorGraph=t.signDepositorGraph;exports.submitWotsPublicKey=t.submitWotsPublicKey;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.ContractStatus=i.ContractStatus;exports.PeginAction=i.PeginAction;exports.canPerformAction=i.canPerformAction;exports.getPeginProtocolState=i.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=i.isActivationDeadlinePassedOnChain;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../PayoutManager-CpfQjtL0.cjs"),t=require("../../../buildAndBroadcastReclaim-BwT6Jxp5.cjs"),i=require("../wasm/index.cjs"),e=require("../../../peginState-eaQ4IO_R.cjs");exports.computeHashlock=a.computeHashlock;exports.validateSecretAgainstHashlock=a.validateSecretAgainstHashlock;exports.ApplicationEntryPointMismatchError=t.ApplicationEntryPointMismatchError;exports.ArtifactsVaultMismatchError=t.ArtifactsVaultMismatchError;exports.BIP68NotMatureError=t.BIP68NotMatureError;exports.ChallengerSetMismatchError=t.ChallengerSetMismatchError;exports.ClaimerPegoutStatusValue=t.ClaimerPegoutStatusValue;exports.DELEGATED_CLAIM_TX_GRAPH_VERSION=t.DELEGATED_CLAIM_TX_GRAPH_VERSION;exports.PEGIN_ETH_CONFIRMATIONS=t.PEGIN_ETH_CONFIRMATIONS;exports.ParticipantKeyDriftError=t.ParticipantKeyDriftError;exports.PayoutDestinationError=t.PayoutDestinationError;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.VaultIdBindingError=t.VaultIdBindingError;exports.activateVault=t.activateVault;exports.activateVaultAndRedeem=t.activateVaultAndRedeem;exports.assembleWatchtowerArtifacts=t.assembleWatchtowerArtifacts;exports.assertArtifactsUsableForVault=t.assertArtifactsUsableForVault;exports.assertChallengerSetMatchesVault=t.assertChallengerSetMatchesVault;exports.assertClaimSpendsVault=t.assertClaimSpendsVault;exports.assertPayoutPaysRegisteredScript=t.assertPayoutPaysRegisteredScript;exports.assertVaultProviderHintAccepted=t.assertVaultProviderHintAccepted;exports.buildAndBroadcastReclaim=t.buildAndBroadcastReclaim;exports.buildAndBroadcastRefund=t.buildAndBroadcastRefund;exports.deriveClaimerWotsKeypair=t.deriveClaimerWotsKeypair;exports.estimateRefundFeeSats=t.estimateRefundFeeSats;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.isPegoutTerminalStatus=t.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=t.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=t.isRegisteredVaultVersionMismatchError;exports.matchKeyHint=t.matchKeyHint;exports.matchKeySetHint=t.matchKeySetHint;exports.resolveCurrentParticipantKeys=t.resolveCurrentParticipantKeys;exports.resolveParticipantKeysAtEpochs=t.resolveParticipantKeysAtEpochs;exports.runDepositorPresignFlow=t.runDepositorPresignFlow;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.canPerformAction=e.canPerformAction;exports.getPeginProtocolState=e.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=e.isActivationDeadlinePassedOnChain;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -5,6 +5,7 @@
5
5
  * @module services
6
6
  */
7
7
  export * from './activation';
8
+ export * from './delegated-claim';
8
9
  export * from './deposit';
9
10
  export * from './htlc';
10
11
  export * from './participants';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/services/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/services/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1,63 +1,80 @@
1
- import { c as s, v as i } from "../../../signPsbtsWithFallback-DoRbHHua.js";
2
- import { A as r, J as o, G as n, P as E, p as c, c as A, d as R, U as l, V as u, W as _, X as d, M as P, N as g, O as p, Q as M, S as m, R as F, a as N, b as v, z as C, T as I, K as T, L as V, g as O, h as S, B as y, q as D, i as h, e as f, I as K, H as U, u as H, C as X, D as b, E as B, F as L, r as k, s as w, f as x, j as G, k as W, v as z, l as j, m as q, n as J, o as Q, t as Z, x as Y, w as $, y as aa } from "../../../buildAndBroadcastReclaim-OMvihzJg.js";
3
- import { C as sa, P as ia, c as ea, g as ra, i as oa } from "../../../peginState-CxDiaKuk.js";
1
+ import { c as s, v as i } from "../../../PayoutManager-CHTOwj0E.js";
2
+ import { p as r, A as o, X as n, C as l, T as E, D as c, i as A, F as u, P as R, j as d, k as P, a4 as _, a5 as g, a6 as m, a7 as p, _ as M, $ as F, a0 as N, a1 as C, a2 as V, R as h, V as y, a as S, b as v, c as I, e as T, f, h as D, g as O, L as K, a3 as U, Y as H, d as b, Z as X, q as B, t as L, M as W, G as w, l as z, m as x, W as G, U as k, I as Z, N as j, O as q, Q as J, S as Q, r as Y, n as $, o as aa, s as ta, u as sa, x as ia, v as ea, y as ra, z as oa, B as na, E as la, H as Ea, J as ca, w as Aa, K as ua } from "../../../buildAndBroadcastReclaim-CqO2DoP8.js";
3
+ import { attachFinalizedAssert as da, finalizePayout as Pa, finalizeWronglyChallenged as _a, pinPegoutProof as ga } from "../wasm/index.js";
4
+ import { C as pa, P as Ma, c as Fa, g as Na, i as Ca } from "../../../peginState-CxDiaKuk.js";
4
5
  export {
5
6
  r as ApplicationEntryPointMismatchError,
6
- o as BIP68NotMatureError,
7
- n as ClaimerPegoutStatusValue,
8
- sa as ContractStatus,
9
- E as PEGIN_ETH_CONFIRMATIONS,
10
- c as ParticipantKeyDriftError,
11
- ia as PeginAction,
12
- A as PeginRegistrationMissingError,
13
- R as PeginRegistrationNotFinalError,
14
- l as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
15
- u as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
16
- _ as RECLAIM_MAX_FEE_RATE_SATS_VB,
17
- d as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
18
- P as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
19
- g as REFUND_MAX_FEE_FRACTION_NUMERATOR,
20
- p as REFUND_MAX_FEE_RATE_SATS_VB,
21
- M as REFUND_VSIZE,
22
- m as ReclaimUneconomicalError,
23
- F as RegisteredVaultVersionMismatchError,
24
- N as activateVault,
7
+ o as ArtifactsVaultMismatchError,
8
+ n as BIP68NotMatureError,
9
+ l as ChallengerSetMismatchError,
10
+ E as ClaimerPegoutStatusValue,
11
+ pa as ContractStatus,
12
+ c as DELEGATED_CLAIM_TX_GRAPH_VERSION,
13
+ A as PEGIN_ETH_CONFIRMATIONS,
14
+ u as ParticipantKeyDriftError,
15
+ R as PayoutDestinationError,
16
+ Ma as PeginAction,
17
+ d as PeginRegistrationMissingError,
18
+ P as PeginRegistrationNotFinalError,
19
+ _ as RECLAIM_MAX_FEE_FRACTION_DENOMINATOR,
20
+ g as RECLAIM_MAX_FEE_FRACTION_NUMERATOR,
21
+ m as RECLAIM_MAX_FEE_RATE_SATS_VB,
22
+ p as RECLAIM_WARN_FEE_FRACTION_NUMERATOR,
23
+ M as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
24
+ F as REFUND_MAX_FEE_FRACTION_NUMERATOR,
25
+ N as REFUND_MAX_FEE_RATE_SATS_VB,
26
+ C as REFUND_VSIZE,
27
+ V as ReclaimUneconomicalError,
28
+ h as RegisteredVaultVersionMismatchError,
29
+ y as VaultIdBindingError,
30
+ S as activateVault,
25
31
  v as activateVaultAndRedeem,
26
- C as assertVaultProviderHintAccepted,
27
- I as buildAndBroadcastReclaim,
28
- T as buildAndBroadcastRefund,
29
- ea as canPerformAction,
32
+ I as assembleWatchtowerArtifacts,
33
+ T as assertArtifactsUsableForVault,
34
+ f as assertChallengerSetMatchesVault,
35
+ D as assertClaimSpendsVault,
36
+ O as assertPayoutPaysRegisteredScript,
37
+ K as assertVaultProviderHintAccepted,
38
+ da as attachFinalizedAssert,
39
+ U as buildAndBroadcastReclaim,
40
+ H as buildAndBroadcastRefund,
41
+ Fa as canPerformAction,
30
42
  s as computeHashlock,
31
- V as estimateRefundFeeSats,
32
- ra as getPeginProtocolState,
33
- oa as isActivationDeadlinePassedOnChain,
34
- O as isApplicationEntryPointMismatchError,
35
- S as isDepositAmountValid,
36
- y as isHintAccepted,
37
- D as isParticipantKeyDriftError,
38
- h as isPeginRegistrationMissingError,
39
- f as isPeginRegistrationNotFinalError,
40
- K as isPegoutTerminalStatus,
41
- U as isRecognizedPegoutStatus,
42
- H as isRegisteredVaultVersionMismatchError,
43
- X as matchKeyHint,
44
- b as matchKeySetHint,
45
- B as resolveCurrentParticipantKeys,
46
- L as resolveParticipantKeysAtEpochs,
47
- k as runDepositorPresignFlow,
48
- w as signDepositorGraph,
49
- x as submitWotsPublicKey,
50
- G as validateDepositAmount,
51
- W as validateMultiVaultDepositInputs,
52
- z as validateOnChainParticipantKeys,
53
- j as validateProviderSelection,
54
- q as validateRemainingCapacity,
43
+ b as deriveClaimerWotsKeypair,
44
+ X as estimateRefundFeeSats,
45
+ Pa as finalizePayout,
46
+ _a as finalizeWronglyChallenged,
47
+ Na as getPeginProtocolState,
48
+ Ca as isActivationDeadlinePassedOnChain,
49
+ B as isApplicationEntryPointMismatchError,
50
+ L as isDepositAmountValid,
51
+ W as isHintAccepted,
52
+ w as isParticipantKeyDriftError,
53
+ z as isPeginRegistrationMissingError,
54
+ x as isPeginRegistrationNotFinalError,
55
+ G as isPegoutTerminalStatus,
56
+ k as isRecognizedPegoutStatus,
57
+ Z as isRegisteredVaultVersionMismatchError,
58
+ j as matchKeyHint,
59
+ q as matchKeySetHint,
60
+ ga as pinPegoutProof,
61
+ J as resolveCurrentParticipantKeys,
62
+ Q as resolveParticipantKeysAtEpochs,
63
+ Y as runDepositorPresignFlow,
64
+ $ as signDepositorGraph,
65
+ aa as submitWotsPublicKey,
66
+ ta as summarizeWatchtowerArtifacts,
67
+ sa as validateDepositAmount,
68
+ ia as validateMultiVaultDepositInputs,
69
+ ea as validateOnChainParticipantKeys,
70
+ ra as validateProviderSelection,
71
+ oa as validateRemainingCapacity,
55
72
  i as validateSecretAgainstHashlock,
56
- J as validateVaultAmounts,
57
- Q as validateVaultProviderPubkey,
58
- Z as verifyRegisteredParticipantKeys,
59
- Y as verifyRegisteredVaultVersions,
60
- $ as waitForPeginRegistrationDepth,
61
- aa as waitForPeginStatus
73
+ na as validateVaultAmounts,
74
+ la as validateVaultProviderPubkey,
75
+ Ea as verifyRegisteredParticipantKeys,
76
+ ca as verifyRegisteredVaultVersions,
77
+ Aa as waitForPeginRegistrationDepth,
78
+ ua as waitForPeginStatus
62
79
  };
63
80
  //# 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":";;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../abortSignals-msbmbqFe.cjs"),a=require("../../../signing-BJ3X66b-.cjs"),_=require("../../../validation-C6XTfZak.cjs"),n=require("./eth/index.cjs"),e=require("../../../psbtInputFields-BrV_ZfL_.cjs"),t=require("../../../fundPeginTransaction-54-Rwb2k.cjs"),E=require("../../../reservation-Dr2HLCxx.cjs"),T=require("../../../bitcoin-D-O2GjbC.cjs");exports.combineAbortSignals=i.combineAbortSignals;exports.calculateBtcTxHash=a.calculateBtcTxHash;exports.createTaprootScriptPathSignOptions=a.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=_.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=_.COMPRESSED_PUBKEY_HEX_LEN;exports.HEX_RE=_.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=_.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=_.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=_.TXID_RE;exports.X_ONLY_PUBKEY_HEX_LEN=_.X_ONLY_PUBKEY_HEX_LEN;exports.waitForTransactionReceiptSmartAware=n.waitForTransactionReceiptSmartAware;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=E.UtxoNotAvailableError;exports.assertUtxosAvailable=E.assertUtxosAvailable;exports.extractInputsFromTransaction=E.extractInputsFromTransaction;exports.findOverlappingPendingVaults=E.findOverlappingPendingVaults;exports.validateUtxosAvailable=E.validateUtxosAvailable;exports.getNetwork=T.getNetwork;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../abortSignals-msbmbqFe.cjs"),E=require("../../../signing-3l5Aqd-H.cjs"),_=require("../../../validation-C6XTfZak.cjs"),n=require("./eth/index.cjs"),e=require("../../../psbtInputFields-BrV_ZfL_.cjs"),t=require("../../../fundPeginTransaction-54-Rwb2k.cjs"),a=require("../../../reservation-Dr2HLCxx.cjs"),r=require("../../../bitcoin-D-O2GjbC.cjs");exports.combineAbortSignals=i.combineAbortSignals;exports.calculateBtcTxHash=E.calculateBtcTxHash;exports.createTaprootScriptPathSignOptions=E.createTaprootScriptPathSignOptions;exports.createTaprootScriptPathSignOptionsForInput=E.createTaprootScriptPathSignOptionsForInput;exports.BITCOIN_ADDRESS_RE=_.BITCOIN_ADDRESS_RE;exports.COMPRESSED_PUBKEY_HEX_LEN=_.COMPRESSED_PUBKEY_HEX_LEN;exports.HEX_RE=_.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=_.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=_.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=_.TXID_RE;exports.X_ONLY_PUBKEY_HEX_LEN=_.X_ONLY_PUBKEY_HEX_LEN;exports.waitForTransactionReceiptSmartAware=n.waitForTransactionReceiptSmartAware;exports.BitcoinScriptType=e.BitcoinScriptType;exports.applyChangeOutputPolicy=e.applyChangeOutputPolicy;exports.computeChangeOutputFeeSats=e.computeChangeOutputFeeSats;exports.computeMaxDeposit=e.computeMaxDeposit;exports.computePeginBaseFeeSats=e.computePeginBaseFeeSats;exports.getDustThreshold=e.getDustThreshold;exports.getPsbtInputFields=e.getPsbtInputFields;exports.getScriptType=e.getScriptType;exports.selectUtxosForPegin=e.selectUtxosForPegin;exports.shouldAddChangeOutput=e.shouldAddChangeOutput;exports.BTC_DUST_SAT=t.BTC_DUST_SAT;exports.DUST_THRESHOLD=t.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=t.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=t.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=t.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=t.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=t.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=t.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=t.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=t.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=t.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=t.fundPeginTransaction;exports.parseUnfundedWasmTransaction=t.parseUnfundedWasmTransaction;exports.peginOutputCount=t.peginOutputCount;exports.rateBasedTxBufferFee=t.rateBasedTxBufferFee;exports.UtxoNotAvailableError=a.UtxoNotAvailableError;exports.assertUtxosAvailable=a.assertUtxosAvailable;exports.extractInputsFromTransaction=a.extractInputsFromTransaction;exports.findOverlappingPendingVaults=a.findOverlappingPendingVaults;exports.validateUtxosAvailable=a.validateUtxosAvailable;exports.getNetwork=r.getNetwork;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,53 +1,54 @@
1
1
  import { c as t } from "../../../abortSignals-BPpAUL1Z.js";
2
- import { c as E, a as _ } from "../../../signing-Cm-McVR2.js";
3
- import { B as r, C as T, H as p, K as S, M as n, T as i, X as A } from "../../../validation-OSC0xTHB.js";
4
- import { waitForTransactionReceiptSmartAware as P } from "./eth/index.js";
5
- import { B as R, a as U, c as u, b as I, d as l, g as N, h as B, f as F, s as f, e as g } from "../../../psbtInputFields-CCVyaQMi.js";
6
- import { B as L, D as m, L as d, M as C, c as D, P as X, b as H, a as h, S as M, T as b, W as Y, f as v, d as W, p as y, r as G } from "../../../fundPeginTransaction-CwhRbCQC.js";
7
- import { U as w, a as V, e as Z, f as k, v as j } from "../../../reservation-Cj9F0rP9.js";
8
- import { k as z } from "../../../bitcoin-C-TuHb-v.js";
2
+ import { c as o, a as E, b as _ } from "../../../signing-Dhr2t0Z6.js";
3
+ import { B as T, C as p, H as S, K as n, M as i, T as A, X as c } from "../../../validation-OSC0xTHB.js";
4
+ import { waitForTransactionReceiptSmartAware as O } from "./eth/index.js";
5
+ import { B as R, a as U, c as I, b as l, d as F, g as N, h as g, f as B, s as f, e as x } from "../../../psbtInputFields-CCVyaQMi.js";
6
+ import { B as m, D as d, L as C, M as D, c as X, P as H, b as h, a as b, S as M, T as Y, W as v, f as W, d as y, p as G, r as K } from "../../../fundPeginTransaction-CwhRbCQC.js";
7
+ import { U as V, a as Z, e as k, f as j, v as q } from "../../../reservation-Cj9F0rP9.js";
8
+ import { k as J } from "../../../bitcoin-C-TuHb-v.js";
9
9
  export {
10
- r as BITCOIN_ADDRESS_RE,
11
- L as BTC_DUST_SAT,
10
+ T as BITCOIN_ADDRESS_RE,
11
+ m as BTC_DUST_SAT,
12
12
  R as BitcoinScriptType,
13
- T as COMPRESSED_PUBKEY_HEX_LEN,
14
- m as DUST_THRESHOLD,
15
- p as HEX_RE,
16
- S as KNOWN_SCRIPT_PREFIXES,
17
- d as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
18
- C as MAX_NON_LEGACY_OUTPUT_SIZE,
19
- n as MAX_REASONABLE_FEE_SATS,
20
- D as MAX_REASONABLE_PEGIN_VBYTES,
21
- X as P2TR_INPUT_SIZE,
22
- H as PEGIN_AUTH_ANCHOR_OUTPUTS,
23
- h as PEGIN_FIXED_OUTPUTS,
13
+ p as COMPRESSED_PUBKEY_HEX_LEN,
14
+ d as DUST_THRESHOLD,
15
+ S as HEX_RE,
16
+ n as KNOWN_SCRIPT_PREFIXES,
17
+ C as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
18
+ D as MAX_NON_LEGACY_OUTPUT_SIZE,
19
+ i as MAX_REASONABLE_FEE_SATS,
20
+ X as MAX_REASONABLE_PEGIN_VBYTES,
21
+ H as P2TR_INPUT_SIZE,
22
+ h as PEGIN_AUTH_ANCHOR_OUTPUTS,
23
+ b as PEGIN_FIXED_OUTPUTS,
24
24
  M as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
25
- i as TXID_RE,
26
- b as TX_BUFFER_SIZE_OVERHEAD,
27
- w as UtxoNotAvailableError,
28
- Y as WALLET_RELAY_FEE_RATE_THRESHOLD,
29
- A as X_ONLY_PUBKEY_HEX_LEN,
25
+ A as TXID_RE,
26
+ Y as TX_BUFFER_SIZE_OVERHEAD,
27
+ V as UtxoNotAvailableError,
28
+ v as WALLET_RELAY_FEE_RATE_THRESHOLD,
29
+ c as X_ONLY_PUBKEY_HEX_LEN,
30
30
  U as applyChangeOutputPolicy,
31
- V as assertUtxosAvailable,
32
- E as calculateBtcTxHash,
31
+ Z as assertUtxosAvailable,
32
+ o as calculateBtcTxHash,
33
33
  t as combineAbortSignals,
34
- u as computeChangeOutputFeeSats,
35
- I as computeMaxDeposit,
36
- l as computePeginBaseFeeSats,
37
- _ as createTaprootScriptPathSignOptions,
38
- Z as extractInputsFromTransaction,
39
- k as findOverlappingPendingVaults,
40
- v as fundPeginTransaction,
34
+ I as computeChangeOutputFeeSats,
35
+ l as computeMaxDeposit,
36
+ F as computePeginBaseFeeSats,
37
+ E as createTaprootScriptPathSignOptions,
38
+ _ as createTaprootScriptPathSignOptionsForInput,
39
+ k as extractInputsFromTransaction,
40
+ j as findOverlappingPendingVaults,
41
+ W as fundPeginTransaction,
41
42
  N as getDustThreshold,
42
- z as getNetwork,
43
- B as getPsbtInputFields,
44
- F as getScriptType,
45
- W as parseUnfundedWasmTransaction,
46
- y as peginOutputCount,
47
- G as rateBasedTxBufferFee,
43
+ J as getNetwork,
44
+ g as getPsbtInputFields,
45
+ B as getScriptType,
46
+ y as parseUnfundedWasmTransaction,
47
+ G as peginOutputCount,
48
+ K as rateBasedTxBufferFee,
48
49
  f as selectUtxosForPegin,
49
- g as shouldAddChangeOutput,
50
- j as validateUtxosAvailable,
51
- P as waitForTransactionReceiptSmartAware
50
+ x as shouldAddChangeOutput,
51
+ q as validateUtxosAvailable,
52
+ O as waitForTransactionReceiptSmartAware
52
53
  };
53
54
  //# sourceMappingURL=index.js.map
@@ -12,4 +12,28 @@ import { SignPsbtOptions } from '../../../shared/wallets/interfaces';
12
12
  * for indices 0 through inputCount-1.
13
13
  */
14
14
  export declare function createTaprootScriptPathSignOptions(publicKey: string, inputCount: number): SignPsbtOptions;
15
+ /**
16
+ * Create SignPsbtOptions for a Taproot script-path PSBT whose signing input
17
+ * is not input 0 — the delegated-claim Payout, where input 0 is the PegIn
18
+ * UTXO and the claimer signs the Assert connector at input 1.
19
+ *
20
+ * Same flags and the same caveat as
21
+ * {@link createTaprootScriptPathSignOptions}: the produced signature must be
22
+ * validated before the PSBT is treated as signed.
23
+ *
24
+ * @param publicKey - Signer's BTC public key (hex), compressed or x-only.
25
+ * @param inputIndex - Index of the single input to sign.
26
+ * @param address - Signer's BTC address. A wallet derives a key-path address
27
+ * from `publicKey` and compares it with the input's address, so `publicKey`
28
+ * alone cannot sign an input that sits at a different address — every
29
+ * script-path connector output. UniSat refuses input 1 of the claimer Payout
30
+ * (the Assert connector) on `publicKey` and signs it on `address`. The
31
+ * caller must confirm the address belongs to `publicKey` before passing it;
32
+ * `assembleWatchtowerArtifacts` does that against `depositorPublicKey`.
33
+ *
34
+ * @experimental Added for the delegated claim, which is still under test and
35
+ * is its only caller. This signature can change in a minor
36
+ * release.
37
+ */
38
+ export declare function createTaprootScriptPathSignOptionsForInput(publicKey: string, inputIndex: number, address?: string): SignPsbtOptions;
15
39
  //# sourceMappingURL=signing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signing.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/utils/signing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,eAAe,CAajB"}
1
+ {"version":3,"file":"signing.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/utils/signing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,eAAe,CAajB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,0CAA0C,CACxD,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,eAAe,CAiBjB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../wasm/index.cjs"),e=require("../../../parseFundingOutpoints-BwC3foxS.cjs");exports.expandAuthAnchor=t.expandAuthAnchor;exports.expandHashlockSecret=t.expandHashlockSecret;exports.expandWotsSeed=t.expandWotsSeed;exports.VAULT_APP_NAME=e.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=e.buildFundingOutpointsCommitment;exports.buildVaultContext=e.buildVaultContext;exports.deriveVaultRoot=e.deriveVaultRoot;exports.forwardDeriveContextHash=e.forwardDeriveContextHash;exports.parseFundingOutpointsFromTx=e.parseFundingOutpointsFromTx;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../wasm/index.cjs"),e=require("../../../deriveVaultRoot-DvhkHzNb.cjs"),n=require("../../../parseFundingOutpoints-C_-PT9BT.cjs");exports.expandAuthAnchor=t.expandAuthAnchor;exports.expandHashlockSecret=t.expandHashlockSecret;exports.expandWotsSeed=t.expandWotsSeed;exports.VAULT_APP_NAME=e.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=e.buildFundingOutpointsCommitment;exports.buildVaultContext=e.buildVaultContext;exports.deriveVaultRoot=e.deriveVaultRoot;exports.forwardDeriveContextHash=e.forwardDeriveContextHash;exports.parseFundingOutpointsFromTx=n.parseFundingOutpointsFromTx;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,14 +1,15 @@
1
- import { expandAuthAnchor as a, expandHashlockSecret as o, expandWotsSeed as n } from "../wasm/index.js";
2
- import { V as s, b as d, a as i, d as p, f as u, p as x } from "../../../parseFundingOutpoints-CC4NKYz2.js";
1
+ import { expandAuthAnchor as o, expandHashlockSecret as a, expandWotsSeed as r } from "../wasm/index.js";
2
+ import { V as s, b as d, a as p, d as i, f as u } from "../../../deriveVaultRoot-BwbXmN0x.js";
3
+ import { p as m } from "../../../parseFundingOutpoints-GSM-IaaK.js";
3
4
  export {
4
5
  s as VAULT_APP_NAME,
5
6
  d as buildFundingOutpointsCommitment,
6
- i as buildVaultContext,
7
- p as deriveVaultRoot,
8
- a as expandAuthAnchor,
9
- o as expandHashlockSecret,
10
- n as expandWotsSeed,
7
+ p as buildVaultContext,
8
+ i as deriveVaultRoot,
9
+ o as expandAuthAnchor,
10
+ a as expandHashlockSecret,
11
+ r as expandWotsSeed,
11
12
  u as forwardDeriveContextHash,
12
- x as parseFundingOutpointsFromTx
13
+ m as parseFundingOutpointsFromTx
13
14
  };
14
15
  //# 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":";;;"}
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.create;var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var b=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of y(t))!h.call(e,o)&&o!==a&&l(e,o,{get:()=>t[o],enumerable:!(r=p(t,o))||r.enumerable});return e};var m=(e,t,a)=>(a=e!=null?d(f(e)):{},b(t||!e||!e.__esModule?l(a,"default",{value:e,enumerable:!0}):a,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",i=2,A=Uint8Array.from({length:s.length/i},(e,t)=>Number.parseInt(s.slice(t*i,t*i+i),16));let c;function n(){return c??(c=import("@babylonlabs-io/babylon-tbv-rust-wasm").catch(e=>{throw c=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:e})}).then(async e=>{try{await e.initWasm()}catch(t){throw c=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:t})}return e})),c}async function w(e){return(await n()).createPrePeginTransaction(e)}async function S(e,t,a,r){return(await n()).buildPeginTxFromPrePegin(e,t,a,r)}async function I(e){return(await n()).getPrePeginHtlcConnectorInfo(e)}async function T(e,t,a,r,o,u){return(await n()).computeMinClaimValue(e,t,a,r,o,u)}async function v(e,t,a,r){return(await n()).computeMinPeginFee(e,t,a,r)}async function x(e,t,a,r,o,u,P,g){return(await n()).computePayoutFeeFloor(e,t,a,r,o,u,P,g)}async function C(){return(await n()).supportedTxGraphVersions()}async function F(e){return(await n()).peginP2aAnchorOutput(e)}async function M(e,t){return(await n()).validatePeginP2aAnchor(e,t)}async function W(e,t){return(await n()).createPayoutConnector(e,t)}async function E(e){return(await n()).getAssertPayoutScriptInfo(e)}async function V(e,t){return(await n()).getAssertNoPayoutScriptInfo(e,t)}async function H(e){return(await n()).getChallengeAssertScriptInfo(e)}async function N(e){return(await n()).expandAuthAnchor(e)}async function _(e,t){return(await n()).expandHashlockSecret(e,t)}async function k(e,t){return(await n()).expandWotsSeed(e,t)}async function O(e,t){return(await n()).deriveVaultId(e,t)}exports.TAP_INTERNAL_KEY=s;exports.buildPeginTxFromPrePegin=S;exports.computeMinClaimValue=T;exports.computeMinPeginFee=v;exports.computePayoutFeeFloor=x;exports.createPayoutConnector=W;exports.createPrePeginTransaction=w;exports.deriveVaultId=O;exports.expandAuthAnchor=N;exports.expandHashlockSecret=_;exports.expandWotsSeed=k;exports.getAssertNoPayoutScriptInfo=V;exports.getAssertPayoutScriptInfo=E;exports.getChallengeAssertScriptInfo=H;exports.getPrePeginHtlcConnectorInfo=I;exports.loadTbvWasm=n;exports.peginP2aAnchorOutput=F;exports.supportedTxGraphVersions=C;exports.tapInternalPubkey=A;exports.validatePeginP2aAnchor=M;
1
+ "use strict";var d=Object.create;var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var h=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of g(e))!b.call(t,i)&&i!==n&&l(t,i,{get:()=>e[i],enumerable:!(r=f(e,i))||r.enumerable});return t};var w=(t,e,n)=>(n=t!=null?d(p(t)):{},h(e||!t||!t.__esModule?l(n,"default",{value:t,enumerable:!0}):n,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",o=2,m=Uint8Array.from({length:s.length/o},(t,e)=>Number.parseInt(s.slice(e*o,e*o+o),16));let u;function a(){return u??(u=import("@babylonlabs-io/babylon-tbv-rust-wasm").catch(t=>{throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm failed to load. The module could not be resolved, or it threw while evaluating, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:t})}).then(async t=>{try{await t.initWasm()}catch(e){throw u=void 0,new Error("The vault-WASM engine @babylonlabs-io/babylon-tbv-rust-wasm resolved, but its WebAssembly binary failed to initialize, commonly a missing or stale generated WASM build. See the cause for the underlying error.",{cause:e})}return t})),u}async function A(t){return(await a()).createPrePeginTransaction(t)}async function S(t,e,n,r){return(await a()).buildPeginTxFromPrePegin(t,e,n,r)}async function C(t){return(await a()).getPrePeginHtlcConnectorInfo(t)}async function T(t,e,n,r,i,c){return(await a()).computeMinClaimValue(t,e,n,r,i,c)}async function W(t,e,n,r){return(await a()).computeMinPeginFee(t,e,n,r)}async function v(t,e,n,r,i,c,y,P){return(await a()).computePayoutFeeFloor(t,e,n,r,i,c,y,P)}async function x(){return(await a()).supportedTxGraphVersions()}async function I(t){return(await a()).peginP2aAnchorOutput(t)}async function F(t,e){return(await a()).validatePeginP2aAnchor(t,e)}async function z(t,e){return(await a()).createPayoutConnector(t,e)}async function M(t){return(await a()).getAssertPayoutScriptInfo(t)}async function E(t,e){return(await a()).getAssertNoPayoutScriptInfo(t,e)}async function V(t){return(await a()).getChallengeAssertScriptInfo(t)}async function H(t){return(await a()).expandAuthAnchor(t)}async function K(t,e){return(await a()).expandHashlockSecret(t,e)}async function N(t,e){return(await a()).expandWotsSeed(t,e)}async function _(t,e){return(await a()).deriveVaultId(t,e)}async function G(t,e){return(await a()).buildClaimPsbt(t,e)}async function k(t,e){return(await a()).buildAssertClaimerPsbt(t,e)}async function O(t,e){return(await a()).buildPayoutClaimerPsbt(t,e)}async function R(t,e){return(await a()).buildPayoutDepositorPsbt(t,e)}async function D(t,e){return(await a()).buildWronglyChallengedPsbts(t,e)}async function Y(t,e,n){return(await a()).pinPegoutProof(t,e,n)}async function L(t,e,n){return(await a()).attachFinalizedAssert(t,e,n)}async function j(t,e){return(await a()).finalizePayout(t,e)}async function B(t,e,n,r,i){return(await a()).finalizeWronglyChallenged(t,e,n,r,i)}async function U(t,e,n){return(await a()).finalizeClaimTx(t,e,n)}async function X(t,e){return(await a()).extractTapScriptSig(t,e)}async function q(t){return(await a()).wotsKeypairFromSeed(t)}async function J(t,e,n){return(await a()).validateWotsKeypairAgainstGraph(t,e,n)}async function Q(t){return(await a()).buildWatchtowerArtifacts(t)}async function Z(t,e){return(await a()).verifyWatchtowerArtifacts(t,e)}exports.TAP_INTERNAL_KEY=s;exports.attachFinalizedAssert=L;exports.buildAssertClaimerPsbt=k;exports.buildClaimPsbt=G;exports.buildPayoutClaimerPsbt=O;exports.buildPayoutDepositorPsbt=R;exports.buildPeginTxFromPrePegin=S;exports.buildWatchtowerArtifacts=Q;exports.buildWronglyChallengedPsbts=D;exports.computeMinClaimValue=T;exports.computeMinPeginFee=W;exports.computePayoutFeeFloor=v;exports.createPayoutConnector=z;exports.createPrePeginTransaction=A;exports.deriveVaultId=_;exports.expandAuthAnchor=H;exports.expandHashlockSecret=K;exports.expandWotsSeed=N;exports.extractTapScriptSig=X;exports.finalizeClaimTx=U;exports.finalizePayout=j;exports.finalizeWronglyChallenged=B;exports.getAssertNoPayoutScriptInfo=E;exports.getAssertPayoutScriptInfo=M;exports.getChallengeAssertScriptInfo=V;exports.getPrePeginHtlcConnectorInfo=C;exports.loadTbvWasm=a;exports.peginP2aAnchorOutput=I;exports.pinPegoutProof=Y;exports.supportedTxGraphVersions=x;exports.tapInternalPubkey=m;exports.validatePeginP2aAnchor=F;exports.validateWotsKeypairAgainstGraph=J;exports.verifyWatchtowerArtifacts=Z;exports.wotsKeypairFromSeed=q;
2
2
  //# sourceMappingURL=index.cjs.map