From f3e7d914e3b8b7f98eacde0dff12a51a04dde93e Mon Sep 17 00:00:00 2001 From: ledwards2225 <98505400+ledwards2225@users.noreply.github.com> Date: Mon, 25 Sep 2023 08:45:20 -0700 Subject: [PATCH] chore: Remove composer keyword from stdlib (#2418) Replacing the keyword "Composer" with "Builder" (or variations as appropriate) in the `stdlib`. # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist). --- .../cpp/src/barretenberg/common/fuzzer.hpp | 8 +- .../stdlib/commitment/pedersen/pedersen.hpp | 10 +- .../commitment/pedersen/pedersen.test.cpp | 78 +-- .../commitment/pedersen/pedersen_plookup.hpp | 10 +- .../pedersen/pedersen_plookup.test.cpp | 48 +- .../stdlib/encryption/aes128/aes128.cpp | 76 +-- .../stdlib/encryption/aes128/aes128.hpp | 8 +- .../stdlib/encryption/aes128/aes128.test.cpp | 18 +- .../stdlib/encryption/ecdsa/ecdsa.hpp | 43 +- .../stdlib/encryption/ecdsa/ecdsa.test.cpp | 90 ++- .../stdlib/encryption/ecdsa/ecdsa_impl.hpp | 66 +- .../encryption/schnorr/schnorr.test.cpp | 92 +-- .../benchmarks/external/external.bench.cpp | 4 +- .../hash/benchmarks/sha256/sha256.bench.cpp | 1 - .../stdlib/hash/blake2s/blake2s.cpp | 56 +- .../stdlib/hash/blake2s/blake2s.hpp | 2 +- .../stdlib/hash/blake2s/blake2s.test.cpp | 16 +- .../stdlib/hash/blake2s/blake2s_plookup.cpp | 70 +- .../stdlib/hash/blake2s/blake2s_plookup.hpp | 2 +- .../stdlib/hash/blake2s/blake_util.hpp | 79 ++- .../stdlib/hash/blake3s/blake3s.cpp | 161 +++-- .../stdlib/hash/blake3s/blake3s.hpp | 2 +- .../stdlib/hash/blake3s/blake3s.test.cpp | 38 +- .../stdlib/hash/blake3s/blake3s_plookup.cpp | 124 ++-- .../stdlib/hash/blake3s/blake3s_plookup.hpp | 2 +- .../stdlib/hash/keccak/keccak.cpp | 86 +-- .../stdlib/hash/keccak/keccak.hpp | 24 +- .../stdlib/hash/keccak/keccak.test.cpp | 124 ++-- .../stdlib/hash/pedersen/pedersen.cpp | 2 +- .../stdlib/hash/pedersen/pedersen.hpp | 10 +- .../stdlib/hash/pedersen/pedersen_gates.hpp | 20 +- .../stdlib/hash/pedersen/pedersen_plookup.hpp | 10 +- .../stdlib/hash/sha256/sha256.cpp | 38 +- .../stdlib/hash/sha256/sha256.hpp | 16 +- .../stdlib/hash/sha256/sha256.test.cpp | 98 +-- .../stdlib/hash/sha256/sha256_plookup.cpp | 81 ++- .../stdlib/hash/sha256/sha256_plookup.hpp | 66 +- .../stdlib/merkle_tree/hash.test.cpp | 18 +- .../stdlib/merkle_tree/membership.hpp | 162 ++--- .../stdlib/merkle_tree/membership.test.cpp | 132 ++-- .../stdlib/merkle_tree/merkle_tree.test.cpp | 6 +- .../stdlib/primitives/address/address.hpp | 34 +- .../primitives/bigfield/bigfield.fuzzer.hpp | 165 +++-- .../stdlib/primitives/bigfield/bigfield.hpp | 74 +- .../primitives/bigfield/bigfield.test.cpp | 390 +++++------ .../primitives/bigfield/bigfield_impl.hpp | 636 +++++++++--------- .../stdlib/primitives/biggroup/biggroup.hpp | 106 +-- .../primitives/biggroup/biggroup.test.cpp | 264 ++++---- .../primitives/biggroup/biggroup_impl.hpp | 4 +- .../primitives/biggroup/biggroup_nafs.hpp | 2 +- .../stdlib/primitives/bit_array/bit_array.cpp | 49 +- .../primitives/bit_array/bit_array.fuzzer.hpp | 88 +-- .../stdlib/primitives/bit_array/bit_array.hpp | 65 +- .../primitives/bit_array/bit_array.test.cpp | 56 +- .../stdlib/primitives/bool/bool.cpp | 126 ++-- .../stdlib/primitives/bool/bool.fuzzer.hpp | 84 +-- .../stdlib/primitives/bool/bool.hpp | 16 +- .../stdlib/primitives/bool/bool.test.cpp | 230 +++---- .../primitives/byte_array/byte_array.cpp | 120 ++-- .../byte_array/byte_array.fuzzer.hpp | 90 +-- .../primitives/byte_array/byte_array.hpp | 47 +- .../primitives/byte_array/byte_array.test.cpp | 56 +- .../circuit_builders/circuit_builders.hpp | 4 +- .../circuit_builders/circuit_builders_fwd.hpp | 2 +- .../stdlib/primitives/curves/bn254.hpp | 1 - .../stdlib/primitives/curves/secp256k1.hpp | 22 +- .../stdlib/primitives/curves/secp256r1.hpp | 22 +- .../stdlib/primitives/field/array.hpp | 70 +- .../stdlib/primitives/field/array.test.cpp | 212 +++--- .../stdlib/primitives/field/field.cpp | 266 ++++---- .../stdlib/primitives/field/field.fuzzer.hpp | 198 +++--- .../stdlib/primitives/field/field.hpp | 76 +-- .../stdlib/primitives/field/field.test.cpp | 434 ++++++------ .../stdlib/primitives/group/group.hpp | 71 +- .../stdlib/primitives/group/group.test.cpp | 38 +- .../stdlib/primitives/logic/logic.cpp | 30 +- .../stdlib/primitives/logic/logic.hpp | 6 +- .../stdlib/primitives/logic/logic.test.cpp | 73 +- .../primitives/memory/dynamic_array.cpp | 75 +-- .../primitives/memory/dynamic_array.hpp | 18 +- .../primitives/memory/dynamic_array.test.cpp | 18 +- .../stdlib/primitives/memory/ram_table.cpp | 84 +-- .../stdlib/primitives/memory/ram_table.hpp | 16 +- .../primitives/memory/ram_table.test.cpp | 26 +- .../stdlib/primitives/memory/rom_table.cpp | 30 +- .../stdlib/primitives/memory/rom_table.hpp | 12 +- .../primitives/memory/rom_table.test.cpp | 24 +- .../primitives/memory/twin_rom_table.cpp | 36 +- .../primitives/memory/twin_rom_table.hpp | 12 +- .../packed_byte_array/packed_byte_array.cpp | 54 +- .../packed_byte_array/packed_byte_array.hpp | 22 +- .../packed_byte_array.test.cpp | 44 +- .../stdlib/primitives/plookup/plookup.cpp | 46 +- .../stdlib/primitives/plookup/plookup.hpp | 4 +- .../primitives/plookup/plookup.test.cpp | 84 +-- .../stdlib/primitives/point/point.hpp | 50 +- .../stdlib/primitives/safe_uint/safe_uint.cpp | 30 +- .../primitives/safe_uint/safe_uint.fuzzer.hpp | 92 +-- .../stdlib/primitives/safe_uint/safe_uint.hpp | 38 +- .../primitives/safe_uint/safe_uint.test.cpp | 218 +++--- .../stdlib/primitives/uint/arithmetic.cpp | 88 +-- .../stdlib/primitives/uint/comparison.cpp | 39 +- .../stdlib/primitives/uint/logic.cpp | 112 +-- .../primitives/uint/plookup/arithmetic.cpp | 58 +- .../primitives/uint/plookup/comparison.cpp | 44 +- .../stdlib/primitives/uint/plookup/logic.cpp | 109 ++- .../stdlib/primitives/uint/plookup/uint.cpp | 82 +-- .../stdlib/primitives/uint/plookup/uint.hpp | 42 +- .../stdlib/primitives/uint/uint.cpp | 153 +++-- .../stdlib/primitives/uint/uint.fuzzer.hpp | 186 ++--- .../stdlib/primitives/uint/uint.hpp | 74 +- .../stdlib/primitives/uint/uint.test.cpp | 606 ++++++++--------- .../stdlib/primitives/witness/witness.hpp | 26 +- .../recursion/transcript/transcript.hpp | 44 +- .../verification_key/verification_key.hpp | 124 ++-- .../verification_key.test.cpp | 10 +- .../recursion/verifier/program_settings.hpp | 12 +- 117 files changed, 4498 insertions(+), 4568 deletions(-) diff --git a/barretenberg/cpp/src/barretenberg/common/fuzzer.hpp b/barretenberg/cpp/src/barretenberg/common/fuzzer.hpp index 2aa56914080..891c247d232 100644 --- a/barretenberg/cpp/src/barretenberg/common/fuzzer.hpp +++ b/barretenberg/cpp/src/barretenberg/common/fuzzer.hpp @@ -680,7 +680,7 @@ class ArithmeticFuzzHelper { }; template