Repository navigation
Conversation
A smart account's signature is whatever its `__check_auth` expects, so the CLI can't build it. `stellar keys add <name> --smart-account C... --signer-plugin <plugin>` saves a smart account identity; when an auth entry needs that contract's signature, `stellar-signer-<plugin>` gets the signature payload and invocation as JSON on stdin and returns the credential's signature ScVal. After a smart account signs, the transaction is re-simulated in enforce mode so `__check_auth` is in the footprint and fee. Refs stellar#2762. Co-Authored-By: Claude <noreply@anthropic.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.
Part of #2762. A narrower take on #2400: smart account (C-address) auth entries are signed by a
stellar-signer-<name>plugin that is configured once per key withstellar keys add <name> --smart-account C… --signer-plugin <name>.The plugin gets #2400's
sign_authrequest on stdin, pluspayload(thesignature_payloadthat__check_authsees). It returns the signatureScValas base64 XDR. Recording-mode simulation skips__check_auth, so after a smart account signs, the transaction is re-simulated in enforce mode to get the right footprint and fee.Envelope signing and CAP-71 delegates are left for later.