From 02f503c74d5196e0259c9f94ce63b46347ffdac8 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Tue, 27 Jun 2017 09:27:29 -0600 Subject: [PATCH] Modify README. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec7a7a6..1bfcce4 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The `ff` crate contains `Field`, `PrimeField`, `PrimeFieldRepr` and `SqrtField` ### #![derive(PrimeField)] -If you need an implementation of a prime field, this library also provides a procedural macro that will expand into an efficient implementation of a prime field when supplied with the modulus. +If you need an implementation of a prime field, this library also provides a procedural macro that will expand into an efficient implementation of a prime field when supplied with the modulus. `PrimeFieldGenerator` must be an element of Fp of p-1 order, that is also quadratic nonresidue. ```rust extern crate rand; @@ -28,7 +28,8 @@ extern crate rand; extern crate ff; #[derive(PrimeField)] -#[PrimeFieldModulus = "57896044618658097711785492504343953926634992332820282019728792003956564819949"] +#[PrimeFieldModulus = "52435875175126190479447740508185965837690552500527637822603658699938581184513"] +#[PrimeFieldGenerator = "7"] struct Fp(FpRepr); ```