Conversation
coot
reviewed
Jan 15, 2026
coot
reviewed
Jan 15, 2026
coot
reviewed
Jan 15, 2026
7f46a53 to
0880f8e
Compare
coot
reviewed
Jan 20, 2026
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)
13271d6 to
6883ba0
Compare
7bff065 to
2633dd1
Compare
2633dd1 to
4984046
Compare
coot
reviewed
Feb 16, 2026
Comment on lines
+284
to
+322
| let servers = (\(addr, (mempool, _, _, inDelay, _, inChannel)) -> do | ||
| let server = sigSubmissionOutbound | ||
| (Tracer $ say . show) | ||
| (NumIdsAck $ getNumTxIdsToReq $ maxUnacknowledgedTxIds sigDecisionPolicy) | ||
| (getMempoolReader mempool) | ||
| (maxBound :: TestVersion) | ||
| runPeerWithLimits | ||
| (("OUTBOUND " ++ show addr,) `contramap` tracer) | ||
| sigSubmissionCodec2 | ||
| (byteLimitsSigSubmissionV2 (fromIntegral . BSL.length)) | ||
| timeLimitsSigSubmissionV2 | ||
| (maybe id delayChannel inDelay inChannel) | ||
| (sigSubmissionV2OutboundPeer server) | ||
| ) | ||
| <$> Map.assocs st | ||
|
|
||
| let clients = (\(addr, (_, ctrlMsgSTM, outDelay, _, outChannel, _)) -> do | ||
| withPeer tracerSigLogic | ||
| sigChannelsVar | ||
| sigMempoolSem | ||
| sigDecisionPolicy | ||
| sharedSigStateVar | ||
| (getMempoolReader inboundMempool) | ||
| (getMempoolWriter inboundMempool) | ||
| getTxSize | ||
| addr $ \(api :: PeerTxAPI m TxId (Tx TxId))-> do | ||
| let client = sigSubmissionInbound | ||
| verboseTracer | ||
| (getMempoolWriter inboundMempool) | ||
| api | ||
| ctrlMsgSTM | ||
| runPipelinedPeerWithLimits | ||
| (("INBOUND " ++ show addr,) `contramap` verboseTracer) | ||
| sigSubmissionCodec2 | ||
| (byteLimitsSigSubmissionV2 (fromIntegral . BSL.length)) | ||
| timeLimitsSigSubmissionV2 | ||
| (maybe id delayChannel outDelay outChannel) | ||
| (sigSubmissionV2InboundPeerPipelined client) | ||
| ) <$> Map.assocs st |
Contributor
There was a problem hiding this comment.
Here we should have multiple servers (outbound sides), and a single client (inbound side) - which is different from tx-submission where we need a single server (inbound side), but multiple clients (outbound sides).
Co-authored-by: coot <coot@coot.me>
Co-authored-by: coot <coot@coot.me>
Co-authored-by: coot <coot@coot.me>
Co-authored-by: coot <coot@coot.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
List of changes
Closes #13
Checklist