Registry / crypto / ff
library0.14.0rscratesunverified

Library for building and interfacing with finite fields

# Cargo.toml [dependencies] ff = "0.14.0"
INSTALL
IMPORT
SIG · FF
F
ff
cryptorustv0.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Field
use ff::Field;

Define and use a prime field with the `PrimeField` derive macro

use ff::Field; use ff::PrimeField; #[derive(PrimeField)] #[PrimeFieldModulus = "52435875175126190479447740508185965837690552500527637822603658699938581184513"] struct Fp(FpRepr); let a = Fp::random(OsRng); let b = Fp::one(); let c = a + b;
Debug
Known issues
gotchaRequires `derive` feature for `PrimeField` macro
fix
Add `features = ["derive"]` to Cargo.toml dependency
affects: >=0.14.0
Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
ff — cargo add ff · libregistry