behzad nouri
4ec5ea6f7b
replaces assert!(matches!(...)) with assert_matches!(...) ( #33068 )
...
assert_matches!(...) provides more informative error message when it
fails and it is part of nightly rust:
https://doc.rust-lang.org/std/assert_matches/macro.assert_matches.html
2023-08-30 13:48:27 -04:00
Alexander Meißner
67d6d688cc
Refactor - Demotes `Arc` to `Rc`. ( #32982 )
...
Demotes `Arc` to `Rc`.
2023-08-25 00:54:06 +02:00
samkim-crypto
6de581ac08
[clap-v3-utils, sdk, zk-token-sdk] Split `EncodableKey` into `EncodableKey` + `SeedDerivable` ( #31668 )
...
* add `SeedDerivable` trait
* implement `SeedDerivable` for `Keypair`
* implement `SeedDerivable` for `ElGamalKeypair`
* update clap-v3-utils to use `EncodableKey + SeedDerivable`
* implement `SeedDerivable` trait for `AeKey`
* implement `EncodableKey` and `SeedDerivable` for `ElGamalSecretKey`
* implement `SeedDerivable` trait for `ElGamalPubkey`
2023-05-17 17:42:35 +09:00
samkim-crypto
39705afc38
[clap-v3-utils] Fix output type of `ae_key_from_seed_phrase` ( #31666 )
...
fix output type of `ae_key_from_seed_phrase`
2023-05-17 09:03:29 +09:00
samkim-crypto
e14384d8ff
[clap-v3-utils] Add `EncodableKeypair` trait and make `confirm_keypair_pubkey` generic ( #31642 )
...
* add `EncodableKeypair` trait
* implement `EncodableKeypair` for `Keypair`
* implement `EncodableKeypair` for `ElGamalKeypair
* make confirm pubkey functions generic
* fix a typo
* Update sdk/src/signer/keypair.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update clap-v3-utils/src/keypair.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* fix a typo
---------
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Tyera <teulberg@gmail.com>
2023-05-17 05:37:59 +09:00
samkim-crypto
21667660e9
[zk-token-sdk, clap-v3-utils] Implement `EncodableKey` for encryption keys ( #31496 )
...
* implement EncodableKey for ElGamalKeypair
* implement EncodableKey for AeKey
* add keypair_from_path and keypair_from_seed support for encryption keys
* remove duplicate methods from traits
2023-05-10 06:37:29 +09:00
Tyera
2147f0d056
Fix keygen usb panic (debug only) ( #31194 )
...
* Bump clap v3
* Use fallible method to check for confirm_key
2023-04-14 02:21:00 +00:00
samkim-crypto
d67fa6c470
[clap-v3-utils] Define `EncodableKey` and make `keypair_from_path` and `keypair_from_seed` generic functions ( #30947 )
...
* generalize `Keypair` to using `EncodableKey` trait in clap-v3-utils
* add associated `Pubkey` type to `EncodableKey`
* remove associated type `Pubkey` from `EncodableKey`
* rename `EncodableKey` associated function names
* remove default overrides for `{read,write}_file`
* resolve dependencies for test
* remove `pubkey_string` from `EncodableKey` trait
2023-04-06 07:42:11 +09:00
behzad nouri
9524c9dbff
patches errors from clippy::uninlined_format_args
...
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
Brooks Prumo
d1ba42180d
clippy for rust 1.65.0 ( #28765 )
2022-11-09 19:39:38 +00:00
Denis K
3e395394d2
Fix clippy warnings on Windows ( #28720 )
...
Fixed clippy warnings on Windows.
2022-11-02 21:05:21 +00:00
behzad nouri
9a57c64f21
patches clippy errors from new rust nightly release ( #27996 )
2022-09-22 22:23:03 +00:00
kirill lykov
76c80d9573
Add clap-v3-utils ( #24096 )
...
* Add clap-utils-v3
* update Cargo.lock
* address PR comment: rename crate
* address PR comment: rename to clap-v3-utils
* update dep version
* fix clippy errors
* update Cargo.lock
2022-04-19 11:48:34 +02:00