@chironbuilder/ootle-sdk 0.1.13 → 0.1.15

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/wallet.d.ts CHANGED
@@ -5,8 +5,9 @@ import { SecretKeyWallet } from "@tari-project/ootle-secret-key-wallet";
5
5
  import type { WalletAccountApi } from "./accountApi.js";
6
6
  import type { BurnClaimProofContents } from "./burnClaim.js";
7
7
  import type { ScannedStealthOutput } from "./confidential.js";
8
+ import { type HtlcExpectations } from "./htlcSafety.js";
8
9
  import { type NetworkName } from "./ootleNetwork.js";
9
- import type { ShieldedOutputRecord } from "./storage.js";
10
+ import type { HtlcJournalEntry, ShieldedOutputRecord } from "./storage.js";
10
11
  /** How a transaction's fee is paid. Defaults to `transparent` everywhere (unchanged behavior:
11
12
  * revealed balance, reveals the paying account on-chain). `private` instead spends a stealth
12
13
  * UTXO of `feeResourceAddress` -- see `OotleAccount.buildPrivateFeeInstructions`'s doc comment
@@ -17,6 +18,50 @@ export type FeeType = {
17
18
  kind: "private";
18
19
  feeResourceAddress: string;
19
20
  };
21
+ /** Options for `OotleAccount.htlcFund` (all optional; the defaults keep the original behavior). */
22
+ export interface HtlcFundOptions {
23
+ /**
24
+ * Where the locked value comes from. `revealed` (default): this account's public balance of the
25
+ * resource. `stealth`: this account's own stealth outputs of it -- exactly `commitments` when
26
+ * given, otherwise selected automatically -- with any excess returned as same-resource stealth
27
+ * change. The fee always stays in its own native-TARI lane either way (see `FeeType`).
28
+ */
29
+ source?: {
30
+ kind: "revealed";
31
+ } | {
32
+ kind: "stealth";
33
+ commitments?: string[];
34
+ };
35
+ /** Dry-run the exact transaction before submitting it (default true). */
36
+ preflight?: boolean;
37
+ }
38
+ export interface HtlcFundResult {
39
+ transactionId: string;
40
+ /** The full `[claim, refund]` tree -- hand it to the claimant; only its root is on-chain. */
41
+ conditions: object[];
42
+ /** The HTLC output's commitment (named `ownCommitment` for backward compatibility). */
43
+ ownCommitment: string;
44
+ /** The HTLC output's own blinding mask -- required for a refund (also kept in the journal). */
45
+ outputMask: string;
46
+ /** This account's same-resource change output, when a stealth-sourced fund had change. */
47
+ changeCommitment?: string;
48
+ /** HTLC journal entry id (see `listHtlcs` / `reconcileHtlcs` / `refundFromJournal`). */
49
+ journalId: string;
50
+ }
51
+ /** Options for `OotleAccount.htlcClaim`. */
52
+ export interface HtlcClaimOptions {
53
+ /** The agreed terms, checked against the chain before the preimage is revealed. */
54
+ expected?: HtlcExpectations;
55
+ /** Dry-run the exact claim before submitting it (default true). */
56
+ preflight?: boolean;
57
+ }
58
+ export interface HtlcSpendResult {
59
+ transactionId: string;
60
+ /** The new, normal stealth output this account received -- already recorded as spendable. */
61
+ receivedCommitment: string;
62
+ amount: bigint;
63
+ journalId: string;
64
+ }
20
65
  export interface TokenBalance {
21
66
  resourceAddress: string;
22
67
  kind: string;
@@ -106,6 +151,13 @@ export declare class OotleAccount implements WalletAccountApi {
106
151
  * address", it is NOT the on-chain account component address. See `getComponentAddress()`.
107
152
  */
108
153
  getWalletAddress(): Promise<string>;
154
+ /**
155
+ * This account's owner public key, synchronously. Named as the receiver of every revealed
156
+ * stealth output this account's `StealthTransfer`s create (tari-ootle#2645): the engine only
157
+ * hands a revealed bucket to a key whose badge is in the transaction's auth scope, and those
158
+ * transfers are always signed with the account key.
159
+ */
160
+ private get accountPublicKey();
109
161
  getPublicKey(): Promise<Uint8Array>;
110
162
  /**
111
163
  * The account's on-chain component address — what instructions use as the `account` argument
@@ -574,6 +626,25 @@ export declare class OotleAccount implements WalletAccountApi {
574
626
  * `transactionId` actually lands (never for a dry run) using the returned `privateFee`.
575
627
  */
576
628
  private prepareSignSubmit;
629
+ /**
630
+ * The prepare/authorize/seal half of `prepareSignSubmit`, without the submit — so the exact same
631
+ * transaction shape can be dry-run first (`dryRun: true` marks it before it's signed) and so the
632
+ * sealed envelope can be journaled before it ever reaches the network.
633
+ *
634
+ * `sourceless`: the operation's main lane spends only stealth inputs (no `spendRevealedInput` of
635
+ * its resource at all — e.g. a stealth-created asset this account holds no public balance of).
636
+ * A transparent fee then can't use `payFeeFromRevealed` (which needs a revealed source of the
637
+ * *operation's* resource); instead it's paid in native TARI straight from `account` — the fee
638
+ * lane — with the account and its vaults registered as inputs, exactly as `submitHtlcSpend` does.
639
+ * A private fee needs no special handling: it never touched the revealed source anyway.
640
+ */
641
+ private sealStealthTransfer;
642
+ /**
643
+ * Dry-runs a sealed envelope (one built with `dry_run` set) against the indexer's dry-run endpoint
644
+ * and returns the execution result, throwing — in the same "was rejected: …" shape real
645
+ * submissions use — if it would be rejected. Nothing reaches consensus; nothing is spent.
646
+ */
647
+ private dryRunEnvelope;
577
648
  redeemStealthOutputWithPrivateFee(resourceAddress: string, commitmentHex: string, revealedAmount: bigint, followUpInstructions: Instruction[], feeResourceAddress: string, feeCommitmentHex: string, maxFee: bigint, relatedComponents?: string[]): Promise<{
578
649
  transactionId: string;
579
650
  feeChangeCommitment: string;
@@ -582,89 +653,122 @@ export declare class OotleAccount implements WalletAccountApi {
582
653
  * Funds an HTLC (hashed timelock contract): creates a stealth output for `amount` of
583
654
  * `resourceAddress`, gated not by a normal one-time stealth key but by a two-leaf TIP-0006
584
655
  * condition tree (`htlcConditions` in `./htlc.ts`) — a claim path admissible only to
585
- * `claimantWalletAddress` (revealing the SHA-256 preimage of `hashLockHex`, before
656
+ * `claimantWalletAddress` (revealing the SHA-256 preimage of `hashLockHex`, strictly before
586
657
  * `refundEpoch`), and a refund path admissible only to this account (at/after `refundEpoch`).
587
- * `htlcConditions`'s own doc comment covers the exact leaf shapes.
588
- *
589
- * This account never needs (and must never be given) the actual preimage — only its hash. The
590
- * caller resolves `refundEpoch` from a desired wall-clock deadline via the provider/network's
591
- * current epoch, the same as any other epoch-relative on-chain deadline.
592
- *
593
- * Returns the full `conditions` tree alongside the transaction id and this output's own
594
- * commitment: only the tree's **root** is committed on-chain, so the claimant needs the exact
595
- * leaves — out of band, via whatever swap protocol coordinates the two sides — to later reveal
596
- * the claim leaf.
597
- *
598
- * Also returns `outputMask` (hex): this account funded the output, so it's the one place the
599
- * blinding mask is ever available to it without decryption — `encrypted_data` is encrypted for
600
- * `claimantWalletAddress`'s view key, not this account's, so if the claim path is never taken
601
- * and this account later calls `htlcRefund`, it cannot decrypt the output the normal way (the
602
- * way `htlcClaim`'s claimant can, since the output is addressed to *them*). Retaining this mask
603
- * now — alongside the known `amount` — is what makes an undecryptable refund possible at all.
604
- * `htlcRefund`'s own doc comment covers the rest.
605
- *
606
- * `destination` is set to the claimant's own wallet address (not this account's) so the
607
- * claimant can independently decrypt and verify the funded amount themselves, the same as any
608
- * other stealth payment addressed to them — spend authority is governed entirely separately, by
609
- * `payTo`.
610
- */
611
- htlcFund(resourceAddress: string, amount: bigint, claimantWalletAddress: string, hashLockHex: string, refundEpoch: bigint, maxFee?: bigint, feeType?: FeeType): Promise<{
612
- transactionId: string;
613
- conditions: object[];
614
- ownCommitment: string;
615
- outputMask: string;
616
- }>;
658
+ *
659
+ * This account never needs (and must never be given) the actual preimage — only its hash.
660
+ *
661
+ * **Two lanes.** The fee and the HTLC value never share a UTXO: the fee is paid in native TARI —
662
+ * privately from a separate stealth TARI UTXO (`feeType: private`) or from this account's public
663
+ * TARI — while the main lane moves only `resourceAddress`. With `source: { kind: "stealth" }` the
664
+ * main lane spends this account's *own stealth outputs* of the resource (exactly the given
665
+ * `commitments`, or selected automatically), returning any excess as same-resource stealth change;
666
+ * no public balance of the resource is needed at all, so a stealth-created asset can be locked.
667
+ * The default `source: { kind: "revealed" }` keeps the original behavior (public balance).
668
+ *
669
+ * **Settlement safety.**
670
+ * - The exact transaction is dry-run first (`preflight`, default on), so a doomed fund never
671
+ * reaches the network.
672
+ * - Before submission, the `conditions` tree, the HTLC output's own blinding `outputMask` and the
673
+ * sealed envelope are written to the HTLC journal. The funder can't decrypt an output
674
+ * addressed to the claimant, so the mask is the only thing that makes a refund possible —
675
+ * it's never held only in memory.
676
+ * - With stealth change, `outputMask` is derived as `aggregateMask − changeMask` and then
677
+ * *proven* before submit: a refund built from it must reproduce the HTLC output's commitment,
678
+ * or the fund is aborted.
679
+ * - Inputs (and a private fee's UTXO) are reserved for the duration, so a concurrent operation
680
+ * can't select them.
681
+ * - If the outcome doesn't arrive in time this throws `HtlcUnknownOutcomeError` (carrying the
682
+ * refund data) instead of a plain failure; `reconcileHtlcs()` resolves it later.
683
+ *
684
+ * Returns the full `conditions` tree (only its root is on-chain — the claimant needs the leaves,
685
+ * out of band), the HTLC output's commitment (`ownCommitment`, kept for compatibility), its
686
+ * `outputMask`, the change commitment when there was change, and the `journalId`.
687
+ */
688
+ htlcFund(resourceAddress: string, amount: bigint, claimantWalletAddress: string, hashLockHex: string, refundEpoch: bigint, maxFee?: bigint, feeType?: FeeType, options?: HtlcFundOptions): Promise<HtlcFundResult>;
617
689
  /**
618
- * Claims a funded HTLC (the counterpart to `htlcFund`): reveals the claim leaf's SHA-256
619
- * preimage to spend the script-path-locked output, moving `amount` into a brand-new, normal
620
- * (freely key-spendable) stealth output owned by this account.
621
- *
622
- * This account must be the intended claimant — `htlcFund` addressed the output to this
623
- * account's own wallet address, so it can unblind it the normal way: fetch the `utxo_...`
624
- * substate and decrypt with this account's own view secret, exactly like `claimPrivatePayment`
625
- * does for any other incoming stealth payment. `conditions` must be the *exact* two-leaf tree
626
- * `htlcFund` returned (or was handed out of band) — the wrong tree produces a script-path
627
- * witness whose condition root won't match the output's committed `SpendAuthorization::Script`
628
- * root, and `buildStealthTransferStatement`/the network both reject the spend.
629
- *
630
- * Fees are paid from this account's own existing revealed balance via `pay_fee` (same as any
631
- * other transaction this wallet submits), not from the claimed HTLC funds — a transaction's fee
632
- * instructions execute in a separate phase *before* its main instructions, so the claim's own
633
- * `StealthTransfer` instruction (a main instruction) can't fund its own fee even in principle.
634
- *
635
- * Bypasses `StealthTransfer`/`WalletStealthAuthorizer` entirely — that builder pipeline only
636
- * ever produces key-path stealth inputs (a one-time DH signature per input), which doesn't
637
- * apply here: this spend's authorization is the revealed script-path leaf itself (its
638
- * `AccessRule` atom, satisfied by this account's normal transaction signature), not a stealth
639
- * spend key. `buildStealthTransferStatement` (tari-project/tari-ootle#2431) produces the
640
- * complete statement — inputs/outputs/balance proof/covenant claims — in one call from the
641
- * unblinded mask+value and the two witnesses below, so there is nothing left for the builder
642
- * pipeline to add.
643
- */
644
- htlcClaim(resourceAddress: string, commitmentHex: string, conditions: object[], preimageHex: string, maxFee?: bigint, feeType?: FeeType): Promise<{
645
- transactionId: string;
690
+ * Chooses the stealth inputs for a stealth-sourced HTLC fund: exactly `requested` when given
691
+ * (each must be this account's own unspent, unreserved record of `resourceAddress`, and must
692
+ * decrypt on-chain to the recorded amount), otherwise a largest-first selection covering `amount`.
693
+ */
694
+ private selectStealthSource;
695
+ /**
696
+ * Checks a funded HTLC against agreed terms *without* claiming it — the verification a swap
697
+ * protocol runs before it reveals anything (or before it funds its own side). Returns every
698
+ * problem found; an empty list means the HTLC is exactly what was agreed. `htlcClaim` runs the
699
+ * same checks itself and refuses to reveal the preimage if any fail.
700
+ */
701
+ verifyHtlc(resourceAddress: string, commitmentHex: string, conditions: object[], expected?: HtlcExpectations, preimageHex?: string): Promise<{
702
+ ok: boolean;
703
+ problems: string[];
704
+ value: bigint | null;
705
+ currentEpoch: bigint;
646
706
  }>;
647
707
  /**
648
- * Refunds an HTLC this account itself funded (via `htlcFund`), once `refundEpoch` has passed:
649
- * reveals the refund leaf to spend the output back into a brand-new, normal (freely
650
- * key-spendable) stealth output owned by this account.
708
+ * Claims a funded HTLC (the counterpart to `htlcFund`): reveals the claim leaf's SHA-256
709
+ * preimage to spend the script-path-locked output into a brand-new, normal (freely
710
+ * key-spendable) stealth output owned by this account — which is recorded in the shielded
711
+ * ledger, so the claimed funds are immediately spendable/visible.
651
712
  *
652
- * Unlike `htlcClaim`, this account **cannot** decrypt the output on-chain — `htlcFund` addressed
653
- * it to the claimant's wallet, so `encrypted_data` is encrypted for the claimant's view key, not
654
- * this account's. `amount` and `outputMaskHex` must be exactly what `htlcFund` returned (or
655
- * otherwise already known — this account chose `amount` itself when funding, and `outputMaskHex`
656
- * is `htlcFund`'s own return value for exactly this purpose): reconstructing the commitment from
657
- * a wrong mask or amount fails cleanly (the resulting input just doesn't match the on-chain
658
- * commitment, so the network rejects the spend) rather than silently, but there is no recovery
659
- * path if this account discarded the mask — see `htlcFund`'s doc comment.
713
+ * **Nothing is revealed until the HTLC is proven safe.** Before the preimage leaves this device
714
+ * it checks (see `verifyHtlc`): the output decrypts as ours; its amount (`expected.amount` /
715
+ * `minAmount`); the tree is a standard HTLC whose claim leaf is *our* key (and, if given, whose
716
+ * refund leaf is the agreed counterparty); the on-chain condition root equals the tree's root;
717
+ * the preimage hashes to the lock; and at least `expected.minEpochsBeforeRefund` (default 1)
718
+ * claim-admissible epochs remain. Any failure throws `HtlcVerificationError`.
660
719
  *
661
- * Otherwise identical to `htlcClaim`: same fee-from-own-balance reasoning, same
662
- * `buildStealthTransferStatement`-in-one-call approach, same bypass of
663
- * `StealthTransfer`/`WalletStealthAuthorizer`.
720
+ * Then the exact claim is dry-run (`preflight`, default on) so a claim that would fail never
721
+ * publishes the preimage on-chain, the journal entry moves to `claim_armed`, and only then is it
722
+ * submitted. The fee stays in its own lane (native TARI, public or private) — the claim's main
723
+ * instruction never funds its own fee. Note a dry run does send the transaction (preimage
724
+ * included) to the indexer's dry-run endpoint; pass `preflight: false` if that indexer isn't one
725
+ * you trust with it.
664
726
  */
665
- htlcRefund(resourceAddress: string, commitmentHex: string, conditions: object[], amount: bigint, outputMaskHex: string, maxFee?: bigint, feeType?: FeeType): Promise<{
666
- transactionId: string;
667
- }>;
727
+ htlcClaim(resourceAddress: string, commitmentHex: string, conditions: object[], preimageHex: string, maxFee?: bigint, feeType?: FeeType, options?: HtlcClaimOptions): Promise<HtlcSpendResult>;
728
+ /**
729
+ * Refunds an HTLC this account itself funded (via `htlcFund`), once the refund path is open:
730
+ * reveals the refund leaf to spend the output back into a brand-new, normal stealth output owned
731
+ * by this account (recorded in the shielded ledger).
732
+ *
733
+ * The refund path is `AfterEpoch(refundEpoch)`, i.e. open when `currentEpoch >= refundEpoch` —
734
+ * checked here first, so an early refund fails with a clear message instead of an on-chain
735
+ * rejection. The funder can't decrypt the output (it's addressed to the claimant), so `amount` and
736
+ * `outputMaskHex` must be exactly what `htlcFund` returned — or use `refundFromJournal(journalId)`,
737
+ * which reads them back from the journal `htlcFund` wrote before submitting.
738
+ */
739
+ htlcRefund(resourceAddress: string, commitmentHex: string, conditions: object[], amount: bigint, outputMaskHex: string, maxFee?: bigint, feeType?: FeeType, options?: {
740
+ preflight?: boolean;
741
+ }): Promise<HtlcSpendResult>;
742
+ /** Refunds an HTLC this account funded, using the conditions/mask/amount `htlcFund` journaled. */
743
+ refundFromJournal(journalId: string, maxFee?: bigint, feeType?: FeeType): Promise<HtlcSpendResult>;
744
+ /** Shared claim/refund path: private-fee reservation, dry run, journal, submit, bookkeeping. */
745
+ private spendHtlc;
746
+ /**
747
+ * Journal → submit → poll → bookkeeping, for every HTLC operation. The entry (with its sealed
748
+ * envelope and recovery data) is persisted before submission; a definitive rejection marks it
749
+ * `failed`, anything ambiguous marks it `unknown` and throws `HtlcUnknownOutcomeError`.
750
+ */
751
+ private submitJournaled;
752
+ /** Applies a confirmed HTLC operation's local bookkeeping. Idempotent (see `addShieldedOutput`). */
753
+ private finalizeHtlcEntry;
754
+ /** This account's HTLC journal (every fund/claim/refund and its state), newest first. The
755
+ * entries' `envelope` of a claim contains the preimage — don't display or export it. */
756
+ listHtlcs(): Promise<HtlcJournalEntry[]>;
757
+ /**
758
+ * Resolves every HTLC operation whose outcome isn't final (`prepared`, `claim_armed`,
759
+ * `submitted`, `unknown`) — call at startup and after any `HtlcUnknownOutcomeError`. An entry
760
+ * with no transaction id is resubmitted with its *identical* sealed envelope (the same
761
+ * transaction, so it can't execute twice; an expired one is simply rejected); then its result is
762
+ * checked once. Confirmed entries get their bookkeeping applied, rejected ones are marked
763
+ * `failed` and release their reserved UTXOs, still-pending ones are left for the next call.
764
+ */
765
+ reconcileHtlcs(): Promise<HtlcJournalEntry[]>;
766
+ /**
767
+ * Stealth commitments this account must not select right now: reserved by another in-flight
768
+ * operation, or spent (as an input or a private fee) by an HTLC operation whose outcome isn't
769
+ * final — those may already be gone on-chain even after their reservation lapses.
770
+ */
771
+ private unavailableCommitments;
668
772
  /**
669
773
  * Sends `amount` of this account's shielded balance for `resourceAddress` directly to
670
774
  * `recipientWalletAddress` — a private-to-private transfer, unlike `shield()` (which always
@@ -736,6 +840,26 @@ export declare class OotleAccount implements WalletAccountApi {
736
840
  commitment: string;
737
841
  fee: bigint;
738
842
  }>;
843
+ /**
844
+ * The fee `claimBurn(contents)` would pay, measured by dry-running the claim -- nothing is
845
+ * submitted. The indexer's dry run checks everything about the claim except the burn's L1
846
+ * inclusion (the burn output rules, its ownership proof, the claim-key signature), so this also
847
+ * tells a caller whether the claim is well formed before anything is spent.
848
+ */
849
+ estimateClaimBurnFee(contents: BurnClaimProofContents, memo?: string): Promise<bigint>;
850
+ /**
851
+ * `unshield()` for an account whose component doesn't exist on-chain yet. Everything runs in the
852
+ * fee phase, the way Tari's own wallet unshields into a new account: the stealth inputs reveal
853
+ * `amount + fee` (any excess returns as a stealth change output), `TakeFromBucket` splits off the
854
+ * fee for `PayFeeFromBucket`, and `CreateAccount` creates this account from the rest. The fee is
855
+ * measured with a dry run first, since a fee revealed from stealth funds is never refunded.
856
+ *
857
+ * The seal key is authorized as a signer and named as the revealed output's receiver
858
+ * (tari-ootle#2645); each input's one-time key co-signs its key-path spend.
859
+ */
860
+ private unshieldIntoNewAccount;
861
+ /** Verifies a burn is ours and returns a builder for its claim transaction at a given fee. */
862
+ private prepareBurnClaim;
739
863
  /** Dry-runs a sealed claim and returns the fee it needs: what it was charged plus the allowance. */
740
864
  private estimateClaimFee;
741
865
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../src/wallet.ts"],"names":[],"mappings":"AA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