Created
October 22, 2017 22:39
-
-
Save jdjkelly/f1d071f7ae49e6e7455f7a353891bae0 to your computer and use it in GitHub Desktop.
Parity's Envelope Struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct Envelope { | |
/// Expiry timestamp | |
pub expiry: u64, | |
/// Time-to-live in seconds | |
pub ttl: u64, | |
/// series of 4-byte topics. | |
pub topics: SmallVec<[Topic; 4]>, | |
/// The message contained within. | |
pub data: Vec<u8>, | |
/// Arbitrary value used to target lower PoW hash. | |
pub nonce: u64, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment