Skip to content

Commit

Permalink
Definition for VrfInOut
Browse files Browse the repository at this point in the history
  • Loading branch information
drskalman committed Mar 25, 2024
1 parent b431186 commit 81f7801
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dleq_vrf/src/vrf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ impl<K: AffineRepr> SecretKey<K> {
}
}

//~ **Definition**: *VRF pre-output* is defined to be a point in $G$ in serialized affine representation
/// VRF pre-output, possibly unverified.
#[derive(Debug,Copy,Clone,PartialEq,Eq,CanonicalSerialize,CanonicalDeserialize)] // Copy, Default, PartialOrd, Ord, Hash
#[repr(transparent)]
Expand Down Expand Up @@ -183,7 +184,8 @@ pub fn collect_preoutputs_vec<C: AffineRepr>(ios: &[VrfInOut<C>]) -> Vec<VrfPreO
).collect::<Vec<VrfPreOut<C>>>()
}


//~ ** Definition **: *VRF InOut* is defined as a pair as follows:
//~ $$(VRF Input, VRF Preoutput)$$
/// VRF input and pre-output paired together, possibly unverified.
///
///
Expand Down Expand Up @@ -323,3 +325,5 @@ where
mod tests {
}



0 comments on commit 81f7801

Please sign in to comment.