Repository navigation
feat(node): session keys that sign ride transactions after one wallet approval - #28
Merged
Merged
Conversation
… approval A new SessionKey transaction (RLP tag 11), signed by the account's own key, names one key that may sign that account's ride transactions until a block height. 0 revokes. Transfer, Burn, WalletTransfer and SessionKey itself still need the account's own signature. Not gated by config: the type only has effect once someone sends it, so validators can be upgraded one by one before the first use. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01U28SAUW9JYTN2EW1gWwsNG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Mehran · project thread
What
A new
SessionKeytransaction (RLP tag 11). The account signs it with its own key (a wallet). It names one key that may then sign that account's ride transactions until a block height.expires_at_block = 0revokes.Rules
Consensus
A node without this code rejects blocks that carry tag 11. It is not gated by config because it has no effect until someone sends one, so validators can be upgraded one at a time first. No chain reset is needed.
Tests
tests/session_key.rs(authorize, ride accepted, Transfer and a second authorization refused, stranger refused, revoke, expiry). Full suite passes.Generated by Claude Code