pub struct BucketReachability {
pub P: RistrettoPoint,
pub Q: RistrettoPoint,
pub date: Scalar,
pub bucket: Scalar,
}Expand description
The Bucket Reachability credential.
Each day, a credential of this type is put in each bucket that has at least a (configurable) threshold number of bridges that have not been blocked as of the given date. Users can present this credential (in zero knowledge) with today’s date to prove that the bridges in their bucket have not been blocked, in order to gain a trust level.
Fields§
§P: RistrettoPoint§Q: RistrettoPoint§date: Scalar§bucket: ScalarTrait Implementations§
Source§impl Debug for BucketReachability
impl Debug for BucketReachability
Source§impl<'de> Deserialize<'de> for BucketReachability
impl<'de> Deserialize<'de> for BucketReachability
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 BucketReachability
impl RefUnwindSafe for BucketReachability
impl Send for BucketReachability
impl Sync for BucketReachability
impl Unpin for BucketReachability
impl UnsafeUnpin for BucketReachability
impl UnwindSafe for BucketReachability
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