pub fn verify_messages(&self, secp: &secp::Secp256k1) -> Result<(), Error> {
		for p in self.participant_data.iter() {
			if let Some(m) = p.message.clone() {
				let hashed = blake2b(secp::constants::MESSAGE_SIZE, &[], &m.as_bytes()[..]);
				let m = secp::Message::from_slice(&hashed.as_bytes())?;
				if !aggsig::verify_single(
					secp,
					&p.message_sig.as_ref().unwrap(),
					&m,
					None,
					&p.public_blind_excess,
					None,
					false,
				) {
					return Err(ErrorKind::Signature(
						"Optional participant messages do not match signatures".to_owned(),
					))?;
				}
			}
		}
		Ok(())
	}
/// Verifies any messages in the slate's participant data match their signatures
Verifies any messages in the slate's participant data match their signatures
Verifies any messages in the slate ' s participant data match their signatures
pub fn verify_messages(&self, secp: &secp::Secp256k1) -> Result<(), Error> {
		for p in self.participant_data.iter() {
			if let Some(m) = p.message.clone() {
				let hashed = blake2b(secp::constants::MESSAGE_SIZE, &[], &m.as_bytes()[..]);
				let m = secp::Message::from_slice(&hashed.as_bytes())?;
				if !aggsig::verify_single(
					secp,
					&p.message_sig.as_ref().unwrap(),
					&m,
					None,
					&p.public_blind_excess,
					None,
					false,
				) {
					return Err(ErrorKind::Signature(
						"Optional participant messages do not match signatures".to_owned(),
					))?;
				}
			}
		}
		Ok(())
	}
pub fn verify_messages ( & self , secp : & secp :: Secp256k1 ) -> Result < ( ) , Error > { for p in self . participant_data . iter ( ) { if let Some ( m ) = p . message . clone ( ) { let hashed = blake2b ( secp :: constants :: MESSAGE_SIZE , & [ ] , & m . as_bytes ( ) [ .. ] ) ; let m = secp :: Message :: from_slice ( & hashed . as_bytes ( ) ) ? ; if ! aggsig :: verify_single ( secp , & p . message_sig . as_ref ( ) . unwrap ( ) , & m , None , & p . public_blind_excess , None , false , ) { return Err ( ErrorKind :: Signature ( " " . to_owned ( ) , ) ) ? ; } } } Ok ( ( ) ) }
Verifies any messages in the slate's participant data match their signatures
Verifies any messages in the slate ' s participant data match their signatures
&self
secp
&secp::Secp256k1