pub struct VdfStructure {
pub input: Vec<u8>,
pub output: Vec<u8>,
pub iterations: u64,
pub rdtsc_checkpoints: Vec<u64>,
pub entropic_pulse: Vec<u8>,
}Expand description
VDF structure from CDDL.
vdf-structure = {
1 => bstr, ; input: H(DST_CHAIN || content || jitter_seal)
2 => bstr, ; output
3 => uint64, ; iterations
4 => [* uint64], ; rdtsc_checkpoints (Continuous)
5 => bstr, ; entropic_pulse: HMAC(DST_CLOCK || SK, T ^ E)
}Fields§
§input: Vec<u8>Input: H(DST_CHAIN || content || jitter_seal).
output: Vec<u8>VDF output.
iterations: u64Number of iterations.
rdtsc_checkpoints: Vec<u64>RDTSC checkpoints for continuous verification.
entropic_pulse: Vec<u8>Entropic pulse: HMAC(DST_CLOCK || SK, T ^ E).
Trait Implementations§
Source§impl Clone for VdfStructure
impl Clone for VdfStructure
Source§fn clone(&self) -> VdfStructure
fn clone(&self) -> VdfStructure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VdfStructure
impl Debug for VdfStructure
Source§impl<'de> Deserialize<'de> for VdfStructure
impl<'de> Deserialize<'de> for VdfStructure
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VdfStructure
impl RefUnwindSafe for VdfStructure
impl Send for VdfStructure
impl Sync for VdfStructure
impl Unpin for VdfStructure
impl UnsafeUnpin for VdfStructure
impl UnwindSafe for VdfStructure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more