pub fn authority_key(&self) -> Option<primitives::ed25519::Pair> {
		if self.config.roles != Roles::AUTHORITY { return None }
		let keystore = &self.keystore;
		if let Ok(Some(Ok(key))) =  keystore.contents().map(|keys| keys.get(0)
				.map(|k| keystore.load(k, "")))
		{
			Some(key)
		} else {
			None
		}
	}
/// give the authority key, if we are an authority and have a key
give the authority key, if we are an authority and have a key
give the authority key if we are an authority and have a key
pub fn authority_key(&self) -> Option<primitives::ed25519::Pair> {
		if self.config.roles != Roles::AUTHORITY { return None }
		let keystore = &self.keystore;
		if let Ok(Some(Ok(key))) =  keystore.contents().map(|keys| keys.get(0)
				.map(|k| keystore.load(k, "")))
		{
			Some(key)
		} else {
			None
		}
	}
pub fn authority_key ( & self ) -> Option < primitives :: ed25519 :: Pair > { if self . config . roles != Roles :: AUTHORITY { return None } let keystore = & self . keystore ; if let Ok ( Some ( Ok ( key ) ) ) = keystore . contents ( ) . map ( | keys | keys . get ( 0 ) . map ( | k | keystore . load ( k , " " ) ) ) { Some ( key ) } else { None } }
give the authority key, if we are an authority and have a key
give the authority key if we are an authority and have a key
&self
&self