pub fn build_metadata_signature_challenge(
        script: &TariScript,
        features: &OutputFeatures,
        sender_offset_public_key: &PublicKey,
        public_commitment_nonce: &Commitment,
        commitment: &Commitment,
    ) -> MessageHash {
        Challenge::new()
            .chain(public_commitment_nonce.as_bytes())
            .chain(script.as_bytes())
            .chain(features.to_bytes())
            .chain(sender_offset_public_key.as_bytes())
            .chain(commitment.as_bytes())
            .finalize()
            .to_vec()
    }
/// Convenience function that calculates the challenge for the metadata commitment signature
Convenience function that calculates the challenge for the metadata commitment signature
Convenience function that calculates the challenge for the metadata commitment signature
pub fn build_metadata_signature_challenge(
        script: &TariScript,
        features: &OutputFeatures,
        sender_offset_public_key: &PublicKey,
        public_commitment_nonce: &Commitment,
        commitment: &Commitment,
    ) -> MessageHash {
        Challenge::new()
            .chain(public_commitment_nonce.as_bytes())
            .chain(script.as_bytes())
            .chain(features.to_bytes())
            .chain(sender_offset_public_key.as_bytes())
            .chain(commitment.as_bytes())
            .finalize()
            .to_vec()
    }
pub fn build_metadata_signature_challenge ( script : & TariScript , features : & OutputFeatures , sender_offset_public_key : & PublicKey , public_commitment_nonce : & Commitment , commitment : & Commitment , ) -> MessageHash { Challenge :: new ( ) . chain ( public_commitment_nonce . as_bytes ( ) ) . chain ( script . as_bytes ( ) ) . chain ( features . to_bytes ( ) ) . chain ( sender_offset_public_key . as_bytes ( ) ) . chain ( commitment . as_bytes ( ) ) . finalize ( ) . to_vec ( ) }
Convenience function that calculates the challenge for the metadata commitment signature
Convenience function that calculates the challenge for the metadata commitment signature
script
&TariScript
features
&OutputFeatures
sender_offset_public_key
&PublicKey
public_commitment_nonce
&Commitment
commitment
&Commitment
script
&TariScript
features
&OutputFeatures
sender_offset_public_key
&PublicKey
public_commitment_nonce
&Commitment
commitment
&Commitment