Enum silk::event::Event
[−]
[src]
pub enum Event { Tick, Transaction(Transaction<i64>), Signature { from: PublicKey, tx_sig: Signature, sig: Signature, }, Timestamp { from: PublicKey, dt: DateTime<Utc>, sig: Signature, }, }
When 'event' is Tick, the event represents a simple clock tick, and exists for the sole purpose of improving the performance of event log verification. A tick can be generated in 'num_hashes' hashes and verified in 'num_hashes' hashes. By logging a hash alongside the tick, each tick and be verified in parallel using the 'id' of the preceding tick to seed its hashing.
Variants
Tick
Transaction(Transaction<i64>)
Signature
Fields of Signature
from: PublicKey | |
tx_sig: Signature | |
sig: Signature |
Timestamp
Fields of Timestamp
from: PublicKey | |
dt: DateTime<Utc> | |
sig: Signature |
Methods
impl Event
[src]
pub fn new_timestamp(from: &KeyPair, dt: DateTime<Utc>) -> Self
[src]
pub fn get_signature(&self) -> Option<Signature>
[src]
pub fn verify(&self) -> bool
[src]
Trait Implementations
impl Debug for Event
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Event
[src]
fn eq(&self, __arg_0: &Event) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Event) -> bool
[src]
This method tests for !=
.