IntersectMBO / IntersectMBO/formal-ledger-specifications

[Alonzo] collectP2ScriptWithContext should not drop scripts

Open
#1,041 0 comments 0 reactions 0 assignees View on GitHub
era: alonzo
Dominant language
Agda
Stars
52
Forks
20
Avg merge
6d 14h
Merged PRs (30d)
7

Description

`collectP2ScriptWithContext` is collecting scripts to validate a transaction.

For each script, the function needs to do a few lookups that are assumed to succeed, but if they fail, the scripts are omitted from the result, with the consequence that they will be ignored when validating the transaction.

To ensure that the lookups succeed, there are separate premises in the UTXOW rule. It happened that some of these premises were missing in the Agda specification [[link]](https://github.com/IntersectMBO/formal-ledger-specifications/pull/1035#issuecomment-3773628055). To help catch these omissions, we could attempt to prove that the premises in the UTXOW rule suffice to prove that the length of the returned list is equal to the amount of scripts needed by the transaction.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.