Client: print main_keypair

This commit is contained in:
ghassmo
2021-10-08 10:18:43 +03:00
parent b112817c56
commit 7ce07d380f

View File

@@ -17,7 +17,7 @@ use crate::{
nullifier::Nullifier,
save_params, setup_mint_prover, setup_spend_prover, OwnCoin,
},
serial::{Decodable, Encodable},
serial::{serialize, Decodable, Encodable},
service::{GatewayClient, GatewaySlabsSubscriber},
state::{state_transition, ProgramState, StateUpdate},
tx,
@@ -70,6 +70,11 @@ impl Client {
let main_keypair = wallet.get_keypairs()?[0].clone();
info!(
target: "CLIENT", "Main Keypair: {}",
bs58::encode(&serialize(&main_keypair.public)).into_string()
);
// Auto create trusted ceremony parameters if they don't exist
if !params_paths.0.exists() {
let params = setup_mint_prover();