Commit Graph

3 Commits

Author SHA1 Message Date
steviez 03e0a9e106
Fixed typo: worskapce ==> workspace (#31790) 2023-05-24 05:27:46 +00:00
samkim-crypto daebea0f33
[zk-keygen] Add `pubkey` and `recover` commands (#31740)
* add `pubkey` command

* add `recover` command

* add simple sanity tests for `pubkey` command

* remove short opt for `force`

* implement `FromStr` for `KeyType`

* increase scope for keypair name

* remove `--outfile` option for `pubkey` command

* make `--type` opt into a positional argument

* cargo sort
2023-05-24 07:22:53 +09:00
samkim-crypto fd69ae77ff
[zk-keygen] create cli utility and add `new` command (#31641)
* create `solana-zk-keygen` cli util

* add `new` key generation command

* add basic tests

* add Cargo.toml for `zk-keygen`

* replace `KeyType::Symmetric` to `KeyType::Aes128` and update crate description

* remove shortopts for key type

* use stderr for status update

* add clap `debug_assert` tests

* drop all shortopts

* drop unnecessary tests

* remove config file args since it is not needed

* Update zk-keygen/src/main.rs

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* clippy

* add shortopt for `outfile`

* move `silent` match to outer scope

* change `--key-type` arg to `--type`

* Update zk-keygen/Cargo.toml

Co-authored-by: Tyera <teulberg@gmail.com>

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Tyera <teulberg@gmail.com>
2023-05-21 11:29:27 +09:00