-
Notifications
You must be signed in to change notification settings - Fork 0
Edgr/sig submission v2 #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Verify that `Sig` encoding produces a valid CBOR.
`SigSubmissionV2` protocol based on `ObjectDiffusion` from Peras. The client requests signatures while the server provides them (dual to `TxSubmission`). The patch provides: * protocol definition and GADT wrappers * CBOR codec * cddl specification checked against the codec * codec provides valid CBOR encoding (checked as a regular QC test rather than with the `cddl` tool)
| {-# LANGUAGE BangPatterns #-} | ||
| {-# LANGUAGE BlockArguments #-} | ||
| {-# LANGUAGE DerivingVia #-} | ||
| {-# LANGUAGE LambdaCase #-} | ||
| {-# LANGUAGE NamedFieldPuns #-} | ||
| {-# LANGUAGE ScopedTypeVariables #-} | ||
| {-# LANGUAGE TupleSections #-} | ||
| {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} | ||
|
|
||
| module DMQ.SigSubmission.Inbound.Decision |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we re-use the original decision logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had intended to reuse the original decision logic, but a type change required me to duplicate the entire implementation.
List of changes
Closes #13
Checklist