Skip to content

fix: use consistent rlp encoding#3443

Open
klkvr wants to merge 2 commits intomainfrom
klkvr/fix-trailing
Open

fix: use consistent rlp encoding#3443
klkvr wants to merge 2 commits intomainfrom
klkvr/fix-trailing

Conversation

@klkvr
Copy link
Copy Markdown
Member

@klkvr klkvr commented Apr 2, 2026

Changes KeyAuthorization and TokenLimit to use consistent rlp encoding which ensures that each value can only be represented with a single RLP payload

This would be breaking for tooking that was encoding expiry: None as 0x80 instead of omitting it

@klkvr klkvr requested a review from mattsse as a code owner April 2, 2026 18:21
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
tempo-primitives: minor
---

Bumped `alloy-rlp` to 0.3.15 and adopted `#[rlp(trailing(canonical))]` for `KeyAuthorization` and `TokenLimit` wire types, using `NonZeroU64` to ensure canonical RLP encoding of optional trailing fields. Replaced derive-based RLP impl on `KeyAuthorization` with manual encode/decode via a `KeyAuthorizationWire` intermediary.

Add changelog to commit this to your branch.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedalloy-rlp@​0.3.13 ⏵ 0.3.1510010093100100

View full report

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.

3 participants