pub fn is_satisfied(&self, witness: &Witness, from: &Pubkey) -> bool {
        match (self, witness) {
            (Condition::Signature(pubkey), Witness::Signature) => pubkey == from,
            (Condition::Timestamp(dt, pubkey), Witness::Timestamp(last_time)) => {
                pubkey == from && dt <= last_time
            }
            _ => false,
        }
    }
/// Return true if the given Witness satisfies this Condition.
Return true if the given Witness satisfies this Condition.
Return true if the given Witness satisfies this Condition .
pub fn is_satisfied(&self, witness: &Witness, from: &Pubkey) -> bool {
        match (self, witness) {
            (Condition::Signature(pubkey), Witness::Signature) => pubkey == from,
            (Condition::Timestamp(dt, pubkey), Witness::Timestamp(last_time)) => {
                pubkey == from && dt <= last_time
            }
            _ => false,
        }
    }
pub fn is_satisfied ( & self , witness : & Witness , from : & Pubkey ) -> bool { match ( self , witness ) { ( Condition :: Signature ( pubkey ) , Witness :: Signature ) => pubkey == from , ( Condition :: Timestamp ( dt , pubkey ) , Witness :: Timestamp ( last_time ) ) => { pubkey == from && dt <= last_time } _ => false , } }
Return true if the given Witness satisfies this Condition.
Return true if the given Witness satisfies this Condition .
&self
witness
&Witness
from
&Pubkey
&self
witness
&Witness
from
&Pubkey