pub fn validate<C: Signing>(&self, secp: &Secp256k1<C>) -> Result<(), Error> {
        let mut event_hex = Vec::new();
        self.oracle_event
            .write(&mut event_hex)
            .expect("Error writing oracle event");
        let msg =
            Message::from_hashed_data::<secp256k1_zkp::bitcoin_hashes::sha256::Hash>(&event_hex);
        secp.schnorrsig_verify(&self.announcement_signature, &msg, &self.oracle_public_key)?;
        self.oracle_event.validate()
    }
/// Returns whether the announcement satisfy validity checks.
Returns whether the announcement satisfy validity checks.
Returns whether the announcement satisfy validity checks .
pub fn validate<C: Signing>(&self, secp: &Secp256k1<C>) -> Result<(), Error> {
        let mut event_hex = Vec::new();
        self.oracle_event
            .write(&mut event_hex)
            .expect("Error writing oracle event");
        let msg =
            Message::from_hashed_data::<secp256k1_zkp::bitcoin_hashes::sha256::Hash>(&event_hex);
        secp.schnorrsig_verify(&self.announcement_signature, &msg, &self.oracle_public_key)?;
        self.oracle_event.validate()
    }
pub fn validate < C : Signing > ( & self , secp : & Secp256k1 < C > ) -> Result < ( ) , Error > { let mut event_hex = Vec :: new ( ) ; self . oracle_event . write ( & mut event_hex ) . expect ( " " ) ; let msg = Message :: from_hashed_data :: < secp256k1_zkp :: bitcoin_hashes :: sha256 :: Hash > ( & event_hex ) ; secp . schnorrsig_verify ( & self . announcement_signature , & msg , & self . oracle_public_key ) ? ; self . oracle_event . validate ( ) }
Returns whether the announcement satisfy validity checks.
Returns whether the announcement satisfy validity checks .
&self
secp
&Secp256k1<C>