pub async fn build_serialized_challenge( message: &APIMessage, wallet_lock: Arc<RwLock<Wallet>>) -> Result<Vec<u8>>