Skip to main content

Crate o1_utils

Crate o1_utils 

Source
Expand description

A collection of utility functions and constants that can be reused from multiple projects

Re-exports§

pub use biguint_helpers::BigUintHelpers;
pub use bitwise_operations::BitwiseOps;
pub use chunked_evaluations::ChunkedEvaluations;
pub use dense_polynomial::ExtendedDensePolynomial;
pub use evaluations::ExtendedEvaluations;
pub use field_helpers::RandomField;
pub use field_helpers::BigUintFieldHelpers;
pub use field_helpers::FieldHelpers;
pub use field_helpers::Two;
pub use foreign_field::ForeignElement;

Modules§

adjacent_pairs
This module hosts the AdjacentPairs type.
biguint_helpers
Bit operations on big integers.
bitwise_operations
This module provides a set of functions to perform bit operations on big integers. In particular, it gives XOR and NOT for BigUint.
chunked_evaluations
This module contains a type ChunkedEvaluations,
chunked_polynomial
This module contains a type ChunkedPolynomial, and a number of helper methods to deal with chunked polynomials. Polynomials that cut in several polynomials of the same length.
dense_polynomial
This adds a few utility functions for the [DensePolynomial] arkworks type.
evaluations
This adds a few utility functions for the [Evaluations] arkworks type.
field_helpers
Useful helper methods to extend [ark_ff::Field].
foreign_field
Describes helpers for foreign field arithmetics Generic parameters are as follows:
hasher
This module provides the CryptoDigest trait, which provides a generic interface for hashing.
lazy_cache
Polyfill of the LazyLock type in the std library as of Rust 1.80.
lazy_lock
A no_std-compatible replacement for std::sync::LazyLock.
math
This modules implements some math helper functions.
serialization
Utility functions for serializing and deserializing arkworks types.
tests
Utils only for testing

Macros§

cfg_into_iter
Returns a parallel consuming iterator when the parallel feature is enabled, otherwise returns a sequential consuming iterator.
cfg_iter
Returns a parallel iterator when the parallel feature is enabled, otherwise returns a sequential iterator.
cfg_iter_mut
Returns a parallel mutable iterator when the parallel feature is enabled, otherwise returns a sequential mutable iterator.