feat(cast): keychain sign-authorization subcommand#14743
Draft
mablr wants to merge 1 commit into
Draft
Conversation
Add 'cast keychain sign-authorization' (alias 'sign-auth') for signing a Tempo KeyAuthorization with the connected browser/passkey wallet. - Converts CLI flags (--limit, --scope/--scopes, --expiry, --chain-id, key type) into tempo-primitives types - Drives BrowserSigner::sign_key_authorization via the local wallet bridge - Prints the RLP-encoded SignedKeyAuthorization as 0x-prefixed hex (or JSON) Enforce policy completeness at clap arg-parsing time: - 'spending_policy' group: --limit | --deny-all-spending (mutually exclusive, required) - 'call_policy' group: --scope | --scopes | --deny-all-calls (mutually exclusive, required) Cargo.toml: temporary local path override for foundry-wallets while the companion foundry-core branch lands. Co-authored-by: Amp <amp@ampcode.com>
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.
Motivation
Add 'cast keychain sign-authorization' (alias 'sign-auth') for signing a Tempo KeyAuthorization with the connected browser/passkey wallet.
Enforce policy completeness at clap arg-parsing time:
Pending:
KeyAuthorizationsigning foundry-browser-wallet#67Testing
Checkout foundry-rs/foundry-browser-wallet#67 and run
pnpm run dev, and open browserhttp://localhost:5173.Build and run
cast: