Skip to content

Commit faa90af

Browse files
add comment for new ledger state
1 parent 170b7e7 commit faa90af

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

contracts/src/token/ConfidentialFungibleToken.compact

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ pragma language_version >= 0.23.0;
106106
* - approve does not disclose the cap (private-cap escrow design).
107107
* - Counterparty graph (sender_id, recipient_id) is public on every
108108
* transfer.
109+
* - Per-(owner, spender) escrow spend count is public and permanent
110+
* (`_escrowSpendEpochs`); each spend is already visible in tx
111+
* history, so this adds no fact, only a cheaper way to read it.
109112
*
110113
* @dev Per-transfer value bound. Value-bearing circuits check
111114
* `value <= MAX_TRANSFER_VALUE()`, which is now the `Uint<128>` maximum: the ECDH
@@ -311,6 +314,9 @@ module ConfidentialFungibleToken {
311314
//
312315
// Kept out of `EscrowEntry`: `approve` replaces that entry wholesale, so a
313316
// counter living there would restart on every re-approve.
317+
//
318+
// Note that this exposes a per-pair spend count which is already derivable
319+
// from tx history.
314320
export ledger _escrowSpendEpochs: Map<Bytes<32>, Map<Bytes<32>, Counter>>;
315321

316322
export ledger _isInitialized: Boolean;

0 commit comments

Comments
 (0)