Crate primitives

Crate primitives 

Source

Modules§

algebra
ciphers
commitments
constants
errors
hashing
random
sharing
signing
transcripts
types
utils

Macros§

chain_eq
An adaptor for itertools::chain! macro which creates an ExactSizeIterator.
impl_borrow_variants
Given an implementation of an arithmetic trait on two borrowed references, this macro implements the same arithmetic on the owned and partially-owned variants
impl_commutative
A macro to implement commutative variants of a binary operation
izip_eq
Create an iterator running multiple iterators in lockstep, panicking if they are not the same length.
izip_eq_lazy
Create an iterator running multiple iterators in lockstep, panicking if they are not of the same length.
par_izip
Create a parallel iterator running multiple iterators in lockstep, panicking if they are not the same length.
sync_join
Macro that joins futures and ensures all have completed before any values are dropped.
sync_try_join
Macro that try_joins futures and ensures all have completed before any values are dropped.
zip_maps
Create an iterator over hashmaps with the same keys. Accepts a list of keys, and the maps to be iterated over. Panics if any of the keys are not found in the maps.