1
2
3
4
5
6
7
8
9
10
11
12
use jormungandr_automation::jormungandr::grpc::client::JormungandrClient;
use rand::Rng;
use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();
    let client = JormungandrClient::from_address(&format!("{}:{}", args[1], args[2])).unwrap();
    let mut auth_nonce = [0u8; 32];
    rand::thread_rng().fill(&mut auth_nonce[..]);
    let response = client.handshake(&auth_nonce);
    println!("{:?}", response);
}