Skip to main content

Module field_helpers

Module field_helpers 

Source
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ยง

FieldHelpersError
Field helpers error

Traitsยง

BigUintFieldHelpers
Field element wrapper for BigUint
FieldHelpers
Field element helpers Unless otherwise stated everything is in little-endian byte order.
RandomField
Helper to generate random field elements
Two
Helper to obtain two

Functionsยง

i32_to_field
Converts an i32 into a [Field]
inner_prod
Compute the inner product of two slices of field elements.
pows
pows(d, x) returns a vector containing the first d powers of the field element x (from 1 to x^(d-1)).
product
Returns the product of all the field elements belonging to an iterator.

Type Aliasesยง

Result
Result alias using FieldHelpersError