[bls-signatures] Add Arkworks (#9211)

This commit is contained in:
Guido Vranken 2022-12-15 12:45:49 +01:00 committed by GitHub
parent b33da18913
commit b8a9236e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,7 @@
#
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
FROM gcr.io/oss-fuzz-base/base-builder-rust
RUN apt-get update && apt-get install -y make autoconf automake libtool wget python lzip libgmp-dev
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
RUN git clone --depth 1 https://github.com/supranational/blst

View File

@ -74,8 +74,16 @@ echo -n "BignumCalc_Mod_BLS12_381_R," >>extra_options.h
echo -n "KDF_HKDF," >>extra_options.h
echo -n "Misc " >>extra_options.h
echo -n "--digests=SHA256 " >>extra_options.h
echo -n "--curves=BLS12_381 " >>extra_options.h
echo -n '"' >>extra_options.h
# Build arkworks-algebra
if [[ $CFLAGS != *-m32* && "$SANITIZER" != "memory" ]]
then
cd $SRC/cryptofuzz/modules/arkworks-algebra/
make
export CXXFLAGS="$CXXFLAGS -DCRYPTOFUZZ_ARKWORKS_ALGEBRA"
fi
if [[ $CFLAGS = *-m32* ]]
then

View File

@ -17,3 +17,4 @@ auto_ccs:
- "mariano@chia.net"
- "arvid@chia.net"
- "bill@chia.net"
- "pratyush795@gmail.com"