Skip to content

SigId validation#55

Open
coot wants to merge 8 commits into
mainfrom
coot/sig-id
Open

SigId validation#55
coot wants to merge 8 commits into
mainfrom
coot/sig-id

Conversation

@coot
Copy link
Copy Markdown
Contributor

@coot coot commented May 13, 2026

List of changes

  • TraceLocalMsgSubmission: removed unused type parameter
  • Sig: Verbose ToJSON instance
  • Removed instance: ToJSON (AnyMessage SigSubmissionV2)
  • Sig: changed CBOR encoding
  • Sig: use Hash Blake2b_256 for sigId field
  • LogFormatting for AnyMessage (SigSubmissionV2 SigId (Sig crypto))
  • Added changelog entry

Checklist

  • related issue
  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

@github-project-automation github-project-automation Bot moved this to In Progress in Ouroboros Network May 13, 2026
@coot coot self-assigned this May 13, 2026
@coot coot linked an issue May 13, 2026 that may be closed by this pull request
@coot coot force-pushed the coot/sig-id branch 2 times, most recently from 0ded8bf to f58205a Compare May 14, 2026 08:06
@coot coot requested review from crocodile-dentist and karknu May 14, 2026 14:07
Copy link
Copy Markdown
Contributor

@crocodile-dentist crocodile-dentist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two comments

Comment thread dmq-node/src/DMQ/NodeToClient/LocalMsgSubmission.hs
Comment on lines +159 to +160
when (a /= 5) $ fail (printf "decodeSig: unexpected number of parameters %d for Sig" a)
sigRawId <- decodeSigId
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a new NodeToNode version if we're changing the codec?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do, but with @jpraynaud we decided to just break the dmq-node (it's not yet in production).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Signature id validation

2 participants