Load private keys into `--suri` from a file
In one of the YouTube videos by Andrew Jones, he mentioned that instead of uploading a contract with cargo contract upload --suri //Alice for example, it was preferable to use the contracts-ui to avoid exposing private key (if it wasn't one of the build-in accounts).
Are we able to populate the private keys into a text file and interpret its contents via the ``suri` option of the cargo contract command similar to like i did here
Yes please Luke. I don't have time to do this in the near future but would love to see it if anyone wants to pick it up!
rel. https://github.com/paritytech/cargo-contract/issues/674
Yes please Luke. I don't have time to do this in the near future but would love to see it if anyone wants to pick it up!
rel. #674
@ascjones I've tried to do it in this PR https://github.com/paritytech/cargo-contract/pull/1134 and it seems to be working fine, just needs some feedback and more cleaning up after that, is that what you were after?
@ascjones FYI, i don't think this is a necessary feature since you can just load the secrets from an environment variable using a bash script or similar like this https://github.com/ltfschoen/validator-scripts?tab=readme-ov-file#rotate-validator-session-keys-with-via-cli-with-polkadotjs-tools-instead-of-via-ui-with-polkadotjs-apps, which saved having to add this feature https://github.com/polkadot-js/tools/issues/82