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

Update contract * commands to support keys other than local keys #1789

Open
elizabethengelman opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@elizabethengelman
Copy link
Contributor

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
@elizabethengelman elizabethengelman converted this from a draft issue Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog (Not Ready)
Development

No branches or pull requests

1 participant