cli: Improve test utilities

This will allow easy creation of multiple users with deterministic keys.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2023-01-24 10:46:57 +01:00
parent 3aff91f9b7
commit b78790622f
3 changed files with 93 additions and 32 deletions
+1 -2
View File
@@ -201,8 +201,7 @@ impl MemorySigner {
/// Generate a new memory signer.
pub fn gen() -> Self {
let seed = crate::Seed::generate();
let keypair = KeyPair::from_seed(seed);
let keypair = KeyPair::generate();
let sk = keypair.sk;
Self {