Skip to content

Instantly share code, notes, and snippets.

@jdjkelly
Created October 22, 2017 22:39
Show Gist options
  • Save jdjkelly/f1d071f7ae49e6e7455f7a353891bae0 to your computer and use it in GitHub Desktop.
Save jdjkelly/f1d071f7ae49e6e7455f7a353891bae0 to your computer and use it in GitHub Desktop.
Parity's Envelope Struct
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