Skip to content

Conversation

@coot
Copy link
Collaborator

@coot coot commented Sep 5, 2025

Description

Dependencies

Patches

  • dmq: update cabal file: authors / maintainer
  • dmq: renamed as dmq-node
  • dmq: depend on kes-agent-crypto library
  • gha: install crypto dependencies
  • nix: increased heap limit on dmq-test
  • dmq: avoid cross compilation errors of kes-agent
  • nix: updated flake inputs
  • dmq: added Sig codec round trip test
  • dmq: added encodeSigOpCertificate and decodeSigOpCertificate functions
  • dmq: using OCert from kes-agent library
  • dmq: updated Sig according to the CIP#137
  • dmq: AnnotatedCodec for SigSubmission mini-protocol
  • protocols: added runWithByteSpan function to codec utilities
  • protocols: added runAnnotatedConnectedPeers
  • local-tx-submission: generalised anncodecLocalTxSubmission
  • dmq: SigKesSignature renamed as SigKESSignature
  • dmq: renamed dmq-exe as dmq-node
  • tx-submission: simplified anncodecTxSubmission2 API
  • tx-submission: expose AnnotatedCodec with polymorphic withBytes functor
  • tx-submission: generalised anncodecTxSubmission2
  • sig-submission: export

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@coot coot requested a review from a team as a code owner September 5, 2025 14:30
@github-project-automation github-project-automation bot moved this to In Progress in Ouroboros Network Sep 5, 2025
@coot coot self-assigned this Sep 5, 2025
@coot coot added the dmq-node Issues / PRs related to DMQ Node label Sep 5, 2025
@coot coot force-pushed the coot/dmq-cip-137-update branch from 17e61f1 to bf98713 Compare September 5, 2025 17:06
@coot coot requested a review from a team as a code owner September 5, 2025 17:06
@coot coot force-pushed the coot/dmq-cip-137-update branch 13 times, most recently from 14f8088 to 27e37c9 Compare September 10, 2025 09:37
crocodile-dentist and others added 10 commits September 10, 2025 14:59
For `SigSubmission` protocol, we need a decoder which can retain bytes
of a substructure.
`anncodecTxSubmission2'`:

*  use `rawTx` and `tx` rather than
  a `tx` and `withBytes tx`.  This allows one to use custom types
  or a `WithBytes` functor.
* use a smart constructor for `tx`-s of type `ByteString -> rawTx -> tx`
  rather than one that requires to manipulate `ByteString` given the
  offsets.
* Export `encodeBytes`.

`anncodecTxSubmission2` is preserved without any modifications.
For `dmq-node` we need a `local-tx-submission` codec which retains bytes
received from network (e.g. an annotated codec).
Use `Sig` data type which contains bytes: rather than using `WithBytes
SigRaw`, we use `Sig` data type which contains bytes of the signature.
This is possible thanks to changes in the previous commit.
* signed fields of Sig include: `sigRawId`, `sigRawBody`, `sigRawKESPeriod`, `sigRawExpiresAt`.
* added `SigRawWithSignedBytes`, which carries signed bytes by the KES
  key.
We need to use since in the initial version of `dmq-node` because of its
own CBOR encoding.  It is not cryptographically checked.
Depend on version of `kes-agent` which doesn't require `git` or `date`
from being available in the PATH.
@coot coot force-pushed the coot/dmq-cip-137-update branch from 27e37c9 to a97f15c Compare September 10, 2025 12:59
@coot coot mentioned this pull request Sep 10, 2025
7 tasks
@coot coot added the mithril Things related to Mithril. label Sep 10, 2025
This fixes a circular dependency between `kes-agent` and
`ouroboros-network` packages which breaks the usage of `cabal build
--dpenendencies-only` in GHA.
* Make all `TxLogic` appear under `AppV2` group.
* Renamed `AppV2.diffusion` test as `AppV2.txSubmission` similar to
  `AppV2.txSubmission`

This makes it easier to run all tx-submission v2 tests.
@coot coot force-pushed the coot/dmq-cip-137-update branch from a97f15c to fbf2875 Compare September 10, 2025 16:08
@coot coot added this pull request to the merge queue Sep 10, 2025
Merged via the queue into main with commit 765efc7 Sep 10, 2025
12 checks passed
@coot coot deleted the coot/dmq-cip-137-update branch September 10, 2025 17:27
@github-project-automation github-project-automation bot moved this from In Progress to Done in Ouroboros Network Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dmq-node Issues / PRs related to DMQ Node mithril Things related to Mithril.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants