Expand description
Useful helper methods to extend [ark_ff::Field].
Re-exportsยง
use alloc::string::String;๐use alloc::vec;๐use alloc::vec;๐use alloc::vec::Vec;๐use ark_ff::BigInteger;๐use ark_ff::Field;๐use ark_ff::PrimeField;๐use core::ops::Neg;๐use num_bigint::BigInt;๐use num_bigint::BigUint;๐use num_bigint::Sign;๐use thiserror::Error;๐use num_bigint::RandBigInt;๐use rand::rngs::StdRng;๐
Enumsยง
- Field
Helpers Error - Field helpers error
Traitsยง
- BigUint
Field Helpers - Field element wrapper for
BigUint - Field
Helpers - Field element helpers Unless otherwise stated everything is in little-endian byte order.
- Random
Field - Helper to generate random field elements
- Two
- Helper to obtain two
Functionsยง
- i32_
to_ field - Converts an
i32into a [Field] - inner_
prod - Compute the inner product of two slices of field elements.
- pows
pows(d, x)returns a vector containing the firstdpowers of the field elementx(from1tox^(d-1)).- product
- Returns the product of all the field elements belonging to an iterator.
Type Aliasesยง
- Result
- Result alias using
FieldHelpersError