Update `contract *` commands to support keys other than local keys
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing the contract * commands and how they use sign_with_local_key versus sign_with. Compare that flow with the documented --build-only and tx sign --sign-with-key workaround, then verify that direct contract commands can select a non-local key and still build, simulate, sign, and send transactions.
Written by the indexing model from the issue text.
Description
Several of the contract * commands default to signing transactions with the local key (sign_with_local_key), instead of allowing sign_with to decide determine which key type to use.
Perhaps we should refactor this so these commands can sign with a ledger device, or the OS secure store/keychain for a better user experience. However, I will note that there is currently a workaround for this, where the user can run these contract * commands as --build-only and then pipe them to tx sign to sign with a different key.
Workaround:
cargo run contract install --wasm ./hello_world.wasm --source-account zed-secure --network local --build-only | \
cargo run tx simulate --network local --source zed-secure | \
cargo run tx sign --network local --sign-with-key zed-secure | \
cargo run tx send --network local
But, we probably want this instead:
cargo run contract install --wasm ./hello_world.wasm --source-account zed-secure --network local
- Dominant language
- Rust
- Stars
- 123
- Forks
- 141
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 17
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/stellar-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stellar/stellar-cli#2384 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
stellar/stellar-cli#2347 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
stellar/stellar-cli#2723 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
stellar/stellar-cli#2722 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
stellar/stellar-cli#2703 ·
All issues in stellar/stellar-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100