Skip to content

Backward compatible marshalling#619

Merged
jbsv merged 32 commits into
masterfrom
backward-compatible-marshalling
Mar 2, 2026
Merged

Backward compatible marshalling#619
jbsv merged 32 commits into
masterfrom
backward-compatible-marshalling

Conversation

@thehoul

@thehoul thehoul commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

This PR is a fix for incompatible marshaling between V3 and V4, specifically regarding the encoding of Deal struct in both Pedersen and Rabin's VSS and the underlying structure Share.PriShare representing a private share of a polynomial.

The problem is raised by the changes in the aforementioned structures making them incompatible when using DEDIS' protobuf (www.github.com/dedis/protobuf), hereafter referred to simply as protobuf). Pedersen and Rabin's VSS implementation use protobuf internally in V3 causing the issue to be unreachable for users of Kyber. For more details, see #607.

The solution implements custom method for the affected structures to marshal and unmarshal when interacting with V3 nodes to ensure compatibility. As a result, we also moved protobuf to internal and removed it as dependency in an effort to gradually get rid of protobuf altogether.

Co-authored-by: AnomalRoil <AnomalRoil@users.noreply.github.com>
@thehoul thehoul self-assigned this Feb 27, 2026
@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

This was referenced Feb 27, 2026
@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@thehoul
thehoul requested review from AnomalRoil and jbsv and removed request for AnomalRoil February 27, 2026 13:51

@jbsv jbsv left a comment

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.

LGTM, thanks

@sonarqubecloud

sonarqubecloud Bot commented Mar 2, 2026

Copy link
Copy Markdown

@jbsv
jbsv merged commit cfa14be into master Mar 2, 2026
77 of 117 checks passed
@jbsv
jbsv deleted the backward-compatible-marshalling branch March 2, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants