Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow source account to be a public key #1619

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Sep 24, 2024

What

Allow public keys to be used with --source.

Why

This is will be useful for --sign-with-lab which users will likely copy their public keys from their wallet to use on the CLI. It will also be useful when we expand --sign-with-* more generally allowing a different key than the source account to sign the transaction.

Known limitations

Currently this would fail if not --build-only since we rely on source account being a reference to a private key or seed

Currently this would fail if not `--build-only` since we rely on source account being a reference to a private key or seed. However, this is will be useful for `--sign-with-lab` which users will likely copy their public keys from their wallet to use on the CLI.
Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

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

Suggestion inline, otherwise lgtm.

cmd/soroban-cli/src/config/mod.rs Show resolved Hide resolved
@leighmcculloch leighmcculloch enabled auto-merge (squash) September 25, 2024 04:28
@leighmcculloch leighmcculloch merged commit 6b4df0e into main Sep 25, 2024
23 of 25 checks passed
@leighmcculloch leighmcculloch deleted the fix/allow_public_source__acount branch September 25, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants