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

Allow --source-account to be a public key #1522

Open
Ifropc opened this issue Aug 5, 2024 · 0 comments
Open

Allow --source-account to be a public key #1522

Ifropc opened this issue Aug 5, 2024 · 0 comments

Comments

@Ifropc
Copy link
Contributor

Ifropc commented Aug 5, 2024

What problem does your feature solve?

With added --sign-with and tx sign functionality (#1406) there should be a way to originate transaction from account we don't know a secret key for. Currently, we must provide a keypair for --source-account in order to form transaction.
Previously, it was always signed by the provided keypair (unless --build-only or --simulate-only were passed. However, with this flags the transaction could never be submitted, as there was no standalone sign functionality).
In turn, now we can write code stellar contract <command> --source-account A --simulate-only | tx sign --sign-with-key B. This will set transaction source account to A, while signing it with B. We no longer need to know private key of A, because it never signs transaction, while formed transaction is still valid (and can be submitted to the network successful under correct signer weights).

What would you like to see?

--source-account <public_key>

What alternatives are there?

Always importing private key for --source-account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo (Ready for Dev)
Development

No branches or pull requests

1 participant