pub async fn fetch_public_keys() -> Result<(), Box<dyn std::error::Error>> {
        env_logger::init();

        let api = ClientBuilder::new()
            .build()
            .await?
            .to_runtime_api::<fennel::RuntimeApi<DefaultConfig, DefaultExtra<DefaultConfig>>>();

        let mut iter = api
            .storage()
            .keystore_module()
            .issued_keys_iter(None)
            .await?;

        while let Some((key, public_key)) = iter.next().await? {
            println!("{}: {:?}", hex::encode(key), public_key);
        }
        Ok(())
    }
/// Retrieve all known public keys from Fennel Protocol.
Retrieve all known public keys from Fennel Protocol.
Retrieve all known public keys from Fennel Protocol .
pub async fn fetch_public_keys() -> Result<(), Box<dyn std::error::Error>> {
        env_logger::init();
        let api = ClientBuilder::new()
            .build()
            .await?
            .to_runtime_api::<fennel::RuntimeApi<DefaultConfig, DefaultExtra<DefaultConfig>>>();
        let mut iter = api
            .storage()
            .keystore_module()
            .issued_keys_iter(None)
            .await?;
        while let Some((key, public_key)) = iter.next().await? {
            println!("{}: {:?}", hex::encode(key), public_key);
        }
        Ok(())
    }
pub async fn fetch_public_keys ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > { env_logger :: init ( ) ; let api = ClientBuilder :: new ( ) . build ( ) . await ? . to_runtime_api :: < fennel :: RuntimeApi < DefaultConfig , DefaultExtra < DefaultConfig > > > ( ) ; let mut iter = api . storage ( ) . keystore_module ( ) . issued_keys_iter ( None ) . await ? ; while let Some ( ( key , public_key ) ) = iter . next ( ) . await ? { println ! ( " " hex encode ( key ) public_key ) ; } Ok ( ( ) ) }
Retrieve all known public keys from Fennel Protocol.
Retrieve all known public keys from Fennel Protocol .