input-output-hk / input-output-hk/cuddle
Show more information when `.cbor` control fails
Open
- Dominant language
- Haskell
- Stars
- 7
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
It should be relatively easy to show why a `.cbor` control is unsatisfied. We have access to the validation trace of the encoded CBOR, so it's just a matter of adding a new constructor to `ValidationTrace` that stores that trace and then adding that constructor to the trace when the validation on encoded CBOR fails.
```haskell
data ValidationTrace (v :: Validity) where
...
InvalidCborControl :: CTree ValidatorStageSimple -> ValidationTrace IsInvalid -> ValidationTrace IsInvalid
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.