[][src]Function nxmpki::get_nxm_pki

pub fn get_nxm_pki() -> String

Examples

 extern crate nxmpki;

 extern crate rustc_serialize;

 use rustc_serialize::json::Json;

 fn main(){}

     let mut json_str=nxmpki::get_nxm_pki().to_string();

     json_str = json_str.to_string();

     let json = Json::from_str(&json_str).unwrap();

     let js = json.find_path(&["cid"]).unwrap();

     let pub_k=json.find_path(&["public_key"]).unwrap();

     println!("cid :{}, public key : {}", js, pub_k);
 }