Explorar o código

Client: print main_keypair

ghassmo %!s(int64=4) %!d(string=hai) anos
pai
achega
7ce07d380f
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/client.rs

+ 6 - 1
src/client.rs

@@ -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();