-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize scalar multiplication to Grumpkin
Copy and paste scalar_multiplication. reduce_buckets_simple compiles, fails expectations Paste-n-go starter code from old Lagrange work Set up test. Baby Grumpkin trancript io. Fix pathing Quick and dirt SRS (no checksum) Add notes on transcript format. Hide srs processor for now. Progress: executable to generate SRS; test passes Add error handling to script Add todo Progress: match endianness of BN txpt Yay reduce_buckets_simple also passes reduce_buckets also passes! try to docker Add todo All tests pass with size 2^20 SRS Add disabled test. Make bin runnable from build/ Bump SRS size to see green check Start: move scalar muls up a level Templatize: everything builds and links Add TODO(#473)'s Prep to templatize test Templatize; test next up. Template test suite. Update srs gen scripts. Fix WASM build (?) Cleanup
- Loading branch information
1 parent
4d851dd
commit df867e4
Showing
55 changed files
with
1,616 additions
and
1,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
#include "../bn254/fr.hpp" | ||
#include "../bn254/fq.hpp" | ||
#include "../bn254/fq2.hpp" | ||
#include "../bn254/g1.hpp" | ||
#include "../bn254/g2.hpp" | ||
|
||
namespace curve { | ||
class BN254 { | ||
public: | ||
using ScalarField = barretenberg::fr; | ||
using BaseField = barretenberg::fq; | ||
using Group = typename barretenberg::g1; | ||
using Element = typename Group::element; | ||
using AffineElement = typename Group::affine_element; | ||
using G2AffineElement = typename barretenberg::g2::affine_element; | ||
using G2BaseField = typename barretenberg::fq2; | ||
}; | ||
} // namespace curve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
cpp/src/barretenberg/ecc/curves/bn254/scalar_multiplication/pippenger.cpp
This file was deleted.
Oops, something went wrong.
155 changes: 0 additions & 155 deletions
155
cpp/src/barretenberg/ecc/curves/bn254/scalar_multiplication/scalar_multiplication.hpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.