soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

Enable `--sign-with-lab` to return the signed tx to CLI for submission

Open janewang opened this issue 1 year ago • 3 comments

Follow up work from this issue: https://github.com/stellar/stellar-cli/issues/1428. Enable a signed tx to be returned to the CLI for submission

janewang avatar Oct 01 '24 21:10 janewang

This is critical for the --sign-with-lab feature to be usable by the average contract developer.

Iirc the main reason we wanted to do sign-with-lab was so that folks could sign with their wallets. Most users will only sign as part of the regular flow of doing operations like stellar contract deploy, and in that flow we can only offer sign-with-lab if the tx is returned, because they are sometimes multi-step flows where multiple transactions are submitted.

Power users will be able to do stellar contract deploy --build-only | stellar tx simulate | stellar tx sign --sign-with-lab, but that flow is really intended for power users, and less-power users using wallets should be able to sign with their wallet without going the power user route by doing stellar contract deploy --sign-with-lab.

leighmcculloch avatar Oct 02 '24 03:10 leighmcculloch

Also as is right no, users won't be able to stellar contract install because the current solution is opening a link, which cannot handle the size of the upload transaction. And currently I assume that many devs use --wasm with deploy which requires an install. (I wish I had pushed more to remove that so feature so deploy only did one thing).

I also think that less power users would want to make use of their browser wallets and would like signing and sending from lab.

Perhaps we should poll users on discord. Also @kalepail 's work on passkeys might offer a way to create the passkey with the browser for lab once and then users could use it via the CLI, but that's perhaps more advanced (and we might not even need the browser to create the passkey?)

willemneal avatar Oct 02 '24 13:10 willemneal

This issue is stale because it has been assigned for 30 days with no activity. It will be closed in 30 days unless the stale label is removed, and the assignee is removed or updated.

github-actions[bot] avatar Dec 04 '24 18:12 github-actions[bot]