-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add support for building transactions with a different signer to the source account #1264
Comments
What if the user doesn't want to sign with any key? they just want to go through the build->simulate flow and then take the tx XDR and sign elsewhere? |
I think we should capture that in a separate issue. I'm hoping once #1180 gets broken up into two issues that the issue that comes out of that for skipping signing on any tx built will involve adding a |
@tomerweller A separate issue now captures supporting that scenario: #1265 |
After reading through #1490 I think we can probably keep this the same as I'm updating this issue to remove the intent to make for multiple signers, but keeping the issue open because I think from a usability pov it's important we support signing with other devices natively on commands so that users can run commands like:
or
|
+1
|
What
The CLI needs to support for adding a different signer to a transaction without the signer being the source account.
Why
The CLI today assumes that the signer of a transaction is the master key of the source account. This is fine for development and for simpler user key setups, but doesn't support slightly more complex setups or where people have their key stored on a hardware device.
Note that there are even more complex setups that might require signatures by multiple keys, or multiple parties and this issue isn't intended to address those more complex scenarios. Those scenarios will be address by the addition of the
tx sign
command in:tx sign
command #1490How
Add a new option
--sign-with-*
that is supported anywhere that--source
is supported.When a
--sign-with-*
is not present, the--source
is the signer.When a
--sign-with-*
is present, the--source
is not a signer, the signer is looked up separately and signs the transaction.Initially this issue captures the need for
--sign-with-key
which can accept any of the key types currently passed to--source
.Examples
For example, today the CLI supports, and it would continue to support:
And for example, a user should be able to sign the tx with a different key than the source:
This change makes the first example in the issue above shorthand for:
The text was updated successfully, but these errors were encountered: