/// Retrieves the association key from the remote storage. Note, at this point in time, genesis
/// only supports a single association key.
Retrieves the association key from the remote storage. Note, at this point in time, genesis
only supports a single association key.
Retrieves the association key from the remote storage . Note at this point in time genesis only supports a single association key .
pub fn association_key(&self, layout: &Layout) -> Result<Ed25519PublicKey, Error> {
        let association_config = self.backend.backend.clone();
        let association_config = association_config.set_namespace(layout.association[0].clone());
        let association_storage = association_config.create_storage(RemoteStorage)?;
        let association_key = association_storage
            .get(ASSOCIATION_KEY)
            .map_err(|e| Error::RemoteStorageReadError(ASSOCIATION_KEY, e.to_string()))?;
        association_key
            .value
            .ed25519_public_key()
            .map_err(|e| Error::RemoteStorageReadError(ASSOCIATION_KEY, e.to_string()))
    }
pub fn association_key ( & self , layout : & Layout ) -> Result < Ed25519PublicKey , Error > { let association_config = self . backend . backend . clone ( ) ; let association_config = association_config . set_namespace ( layout . association [ 0 ] . clone ( ) ) ; let association_storage = association_config . create_storage ( RemoteStorage ) ? ; let association_key = association_storage . get ( ASSOCIATION_KEY ) . map_err ( | e | Error :: RemoteStorageReadError ( ASSOCIATION_KEY , e . to_string ( ) ) ) ? ; association_key . value . ed25519_public_key ( ) . map_err ( | e | Error :: RemoteStorageReadError ( ASSOCIATION_KEY , e . to_string ( ) ) ) }
Retrieves the association key from the remote storage.
Retrieves the association key from the remote storage .
&self
layout
&Layout