Skip to content

fix: ensure signatures are verified when deserializing with serde#18

Merged
dignifiedquire merged 2 commits into
mainfrom
fix-serde-verify
May 22, 2026
Merged

fix: ensure signatures are verified when deserializing with serde#18
dignifiedquire merged 2 commits into
mainfrom
fix-serde-verify

Conversation

@dignifiedquire
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@Arqu Arqu left a comment

Choose a reason for hiding this comment

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

🔥

@Frando
Copy link
Copy Markdown
Member

Frando commented May 22, 2026

Not against this change but this makes it impossible to inspect a "bad" rcan received over the wire. Not sure what to do about it. Maybe a newtype UnverifiedRcan that impls Deserialize without checking the sig? I do agree that the default Deserialize should be validating.

Copy link
Copy Markdown
Member

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

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

Yeah this is better

@matheus23
Copy link
Copy Markdown
Member

Not against this change but this makes it impossible to inspect a "bad" rcan received over the wire. Not sure what to do about it. Maybe a newtype UnverifiedRcan that impls Deserialize without checking the sig? I do agree that the default Deserialize should be validating.

Agreed that is use in that, but for now we don't seem to need that & we'll be able to add that once the day comes.

@dignifiedquire dignifiedquire merged commit b05d82c into main May 22, 2026
22 of 23 checks passed
@dignifiedquire
Copy link
Copy Markdown
Contributor Author

published as rcan 0.3.2

@dignifiedquire dignifiedquire deleted the fix-serde-verify branch May 22, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants