Skip to content

Commit 8e87437

Browse files
authored
[Dijkstra] Incorporate feedback from audit (#1302)
* Fix bug in p2ScriptsWithContext * Reword text about "batch-scoped witnesses"
1 parent 834db23 commit 8e87437

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/Ledger/Dijkstra/Specification/Utxo.lagda.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ The primary guiding design principles are
1616
+ **Spend-side safety**. All spending inputs across the whole batch must
1717
come from a pre-batch UTxO snapshot (see point 6 of the
1818
[Changes to Transaction Validity][1] section of CIP-0118);
19-
+ **Batch-scoped witnesses**. Scripts and datums are collected once per batch and
20-
then shared for phase-2 evaluation; CIP-0118 explicitly states that reference
21-
scripts, and by implication reference-input-resolved UTxO entries, could be
22-
outputs of preceding transactions in the batch (see point 5 of the
19+
+ **Batch-scoped witnesses**. Scripts are collected once per batch and
20+
then shared for phase-2 evaluation (see point 5 of the
2321
[Changes to Transaction Validity][1] section of CIP-0118);
2422
+ **Batch-consistency**. No two transactions in the batch may spend the
2523
same input. This is enforced explicitly at the top level by a predicate
@@ -387,7 +385,7 @@ allP2ScriptsWithContext Γ txTop =
387385
p2ScriptsWithContext : Tx ℓ → List (P2Script × List Data × ExUnits × CostModel)
388386
p2ScriptsWithContext t =
389387
collectP2ScriptsWithContext (PParamsOf Γ)
390-
txTop
388+
t
391389
(UTxOOf Γ) -- (1)
392390
(ScriptPoolOf Γ) -- (2)
393391
```

0 commit comments

Comments
 (0)