pub fn new_timestamp(from: &KeyPair, dt: DateTime<Utc>) -> Self {
        let sign_data = serialize(&dt).unwrap();
        let sig = Signature::clone_from_slice(from.sign(&sign_data).as_ref());
        Event::Timestamp {
            from: from.pubkey(),
            dt,
            sig,
        }
    }
/// Create and sign a new Witness Timestamp. Used for unit-testing.
Create and sign a new Witness Timestamp. Used for unit-testing.
Create and sign a new Witness Timestamp . Used for unit - testing .
pub fn new_timestamp(from: &KeyPair, dt: DateTime<Utc>) -> Self {
        let sign_data = serialize(&dt).unwrap();
        let sig = Signature::clone_from_slice(from.sign(&sign_data).as_ref());
        Event::Timestamp {
            from: from.pubkey(),
            dt,
            sig,
        }
    }
pub fn new_timestamp ( from : & KeyPair , dt : DateTime < Utc > ) -> Self { let sign_data = serialize ( & dt ) . unwrap ( ) ; let sig = Signature :: clone_from_slice ( from . sign ( & sign_data ) . as_ref ( ) ) ; Event :: Timestamp { from : from . pubkey ( ) , dt , sig , } }
Create and sign a new Witness Timestamp.
Create and sign a new Witness Timestamp .
from
&KeyPair
dt
DateTime<Utc>
from
&KeyPair
dt
DateTime<Utc>