input-output-hk / input-output-hk/cuddle

Show more information when `.cbor` control fails

Open
#149 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.