pub(crate) fn new(
        creator: ValidatorIndex,
        timestamp: Timestamp,
        instance_id: C::InstanceId,
        sk: &C::ValidatorSecret,
    ) -> Self {
        let signature = sk.sign(&Self::hash(creator, timestamp, instance_id));
        Ping {
            creator,
            timestamp,
            instance_id,
            signature,
        }
    }
/// Creates a new signed ping.
Creates a new signed ping.
Creates a new signed ping .
pub(crate) fn new(
        creator: ValidatorIndex,
        timestamp: Timestamp,
        instance_id: C::InstanceId,
        sk: &C::ValidatorSecret,
    ) -> Self {
        let signature = sk.sign(&Self::hash(creator, timestamp, instance_id));
        Ping {
            creator,
            timestamp,
            instance_id,
            signature,
        }
    }
pub ( crate ) fn new ( creator : ValidatorIndex , timestamp : Timestamp , instance_id : C :: InstanceId , sk : & C :: ValidatorSecret , ) -> Self { let signature = sk . sign ( & Self :: hash ( creator , timestamp , instance_id ) ) ; Ping { creator , timestamp , instance_id , signature , } }
Creates a new signed ping.
Creates a new signed ping .
creator
ValidatorIndex
timestamp
Timestamp
instance_id
C::InstanceId
sk
&C::ValidatorSecret
creator
ValidatorIndex
timestamp
Timestamp
instance_id
C::InstanceId
sk
&C::ValidatorSecret