2 "name": "chiatk-bls-signatures-shared-pod",
4 "summary": "BLS signatures in C++, using the relic toolkit",
5 "description": "Implements BLS signatures with aggregation as in Boneh, Drijvers, Neven 2018, using relic toolkit for cryptographic primitives (pairings, EC, hashing). The BLS12-381 curve is used.",
6 "homepage": "https://github.com/Chia-Network/bls-signatures",
8 "type": "Apache License 2.0"
11 "Chia Network": "hello@chia.net"
13 "social_media_url": "https://twitter.com/ChiaNetworkInc",
15 "git": "https://github.com/chiatk/bls-signatures.git",
18 "prepare_command": "set -x\n\ngit submodule update --init\n\nMIN_IOS=\"12.0\"\nMIN_WATCHOS=\"2.0\"\nMIN_TVOS=$MIN_IOS\nMIN_MACOS=\"10.10\"\n\nIPHONEOS=iphoneos\nIPHONESIMULATOR=iphonesimulator\nWATCHOS=watchos\nWATCHSIMULATOR=watchsimulator\nTVOS=appletvos\nTVSIMULATOR=appletvsimulator\nMACOS=macosx\n\nLOGICALCPU_MAX=`sysctl -n hw.logicalcpu_max`\n\nGMP_DIR=\"`pwd`/gmp\"\n \n \n download_gmp()\n {\n GMP_VERSION=\"6.2.1\"\n CURRENT_DIR=`pwd`\n\n if [ ! -s ${CURRENT_DIR}/gmp-${GMP_VERSION}.tar.bz2 ]; then\n curl -L -o ${CURRENT_DIR}/gmp-${GMP_VERSION}.tar.bz2 https://gmplib.org/download/gmp/gmp-${GMP_VERSION}.tar.bz2\n fi\n\n rm -rf gmp\n tar xfj \"gmp-${GMP_VERSION}.tar.bz2\"\n mv gmp-${GMP_VERSION} gmp\n mv contrib/gmp-patch-6.2.1/compat.c gmp/compac.c\n mv contrib/gmp-patch-6.2.1/longlong.h gmp/longlong.h\n }\n\n download_relic()\n {\n \n CURRENT_DIR=`pwd`\n\n if [ ! -s ${CURRENT_DIR}/relic.zip ]; then\n curl -L -o ${CURRENT_DIR}/relic.zip https://github.com/Chia-Network/relic/archive/1d98e5abf3ca5b14fd729bd5bcced88ea70ecfd7.zip\n fi\n\n rm -rf contrib/relic\n unzip \"relic.zip\" -d relic_temp\n mv relic_temp/relic-1d98e5abf3ca5b14fd729bd5bcced88ea70ecfd7 contrib/relic\n rm -rf relic_temp\n \n }\n\n #replace the import of gmp.h becouse Xcode failed with it import type\n find ./src/ -name '*.hpp' -print0 | xargs -0 sed -i '' 's/#include <gmp.h>/#include \"gmp.h\"/g'\n download_relic\n download_gmp",
26 "pod_target_xcconfig": {
27 "CLANG_CXX_LANGUAGE_STANDARD": "c++14",
28 "CLANG_WARN_DOCUMENTATION_COMMENTS": "NO",
29 "GCC_WARN_64_TO_32_BIT_CONVERSION": "NO",
30 "GCC_WARN_INHIBIT_ALL_WARNINGS": "YES"
35 "contrib/relic/include/*.h",
36 "contrib/relic/include/low/*.h",
37 "contrib/relic/relic-iphoneos-arm64/include/*.h"
39 "exclude_files": "src/test-utils.hpp"