/// Function to process the whoami command
Function to process the whoami command
Function to process the whoami command
fn process_whoami(&self) {
        if let Some(wallet_node_identity) = self.wallet_node_identity.clone() {
            println!("======== Wallet ==========");
            println!("{}", wallet_node_identity);
            let emoji_id = EmojiId::from_pubkey(&wallet_node_identity.public_key());
            println!("Emoji ID: {}", emoji_id);
            println!();
            // TODO: Pass the network in as a var
            let qr_link = format!("tari://ridcully/pubkey/{}", &wallet_node_identity.public_key().to_hex());
            let code = QrCode::new(qr_link).unwrap();
            let image = code
                .render::<unicode::Dense1x2>()
                .dark_color(unicode::Dense1x2::Dark)
                .light_color(unicode::Dense1x2::Light)
                .build();
            println!("{}", image);
            println!();
        }
        println!("======== Base Node ==========");
        println!("{}", self.base_node_identity);
    }
fn process_whoami ( & self ) { if let Some ( wallet_node_identity ) = self . wallet_node_identity . clone ( ) { println ! ( " " ) ; println ! ( " " wallet_node_identity ) ; let emoji_id = EmojiId :: from_pubkey ( & wallet_node_identity . public_key ( ) ) ; println ! ( " " emoji_id ) ; println ! ( ) ; // TODO: Pass the network in as a var let qr_link = format ! ( " " wallet_node_identity public_key ( ) to_hex ( ) ) ; let code = QrCode :: new ( qr_link ) . unwrap ( ) ; let image = code . render :: < unicode :: Dense1x2 > ( ) . dark_color ( unicode :: Dense1x2 :: Dark ) . light_color ( unicode :: Dense1x2 :: Light ) . build ( ) ; println ! ( " " image ) ; println ! ( ) ; } println ! ( " " ) ; println ! ( " " self base_node_identity ) ; }
Function to process the whoami command
Function to process the whoami command
&self