-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from clearmatics/develop
Lydia release: v0.3
- Loading branch information
Showing
294 changed files
with
25,340 additions
and
6,863 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
{ | ||
# .clang-format in root of repository. To run on single file: | ||
# | ||
# $ clang-format -style=file -i <file path> | ||
# | ||
# To run on whole repo: | ||
# | ||
# $ scripts/format | ||
|
||
# llvm coding standard is used as a starting point | ||
# https://llvm.org/docs/CodingStandards.html | ||
BasedOnStyle: llvm, | ||
|
||
# BASICS | ||
|
||
Standard: C++11, | ||
IndentWidth: 4, | ||
AccessModifierOffset: -4, | ||
UseTab: Never, | ||
FixNamespaceComments: "true", | ||
IncludeBlocks: Regroup, | ||
MaxEmptyLinesToKeep: 1, | ||
BreakBeforeTernaryOperators: "true", | ||
SpaceBeforeCpp11BracedList: "false", | ||
Cpp11BracedListStyle: "true", | ||
KeepEmptyLinesAtTheStartOfBlocks: "true", | ||
AllowShortIfStatementsOnASingleLine: "false", | ||
SpaceAfterTemplateKeyword: "false", | ||
AlwaysBreakAfterReturnType: None, | ||
PenaltyReturnTypeOnItsOwnLine: 10000000, | ||
SpaceAfterCStyleCast: "false", | ||
SpaceBeforeAssignmentOperators: "true", | ||
|
||
# ARGUMENTS AND PARAMETERS PACKING | ||
# Aligning arguments and parameters to brackets is hard to | ||
# maintain. If arguments span multiple lines, more than one | ||
# argument per line is difficult to parse. | ||
# | ||
# GOOD: | ||
# my_function(a, b, c); | ||
# my_function( | ||
# very, | ||
# long, | ||
# multi, | ||
# line, | ||
# parameter, | ||
# list); | ||
# my_function( | ||
# very, long, parameter, list); | ||
# | ||
# BAD: | ||
# // Hard to maintain and generates unnecessary changes as | ||
# // functions are renamed. | ||
# my_function(very, | ||
# long, | ||
# multi, | ||
# line, | ||
# parameter, | ||
# list); | ||
# | ||
# // Difficult to parse arguments | ||
# my_function( | ||
# very, long, multi, line, | ||
# parameter, list); | ||
# | ||
# (NOTE: this seems to cause breaks in very long template | ||
# parameter lists, but that seems like a reasonable price to | ||
# occasionally pay to avoid ambiguity) | ||
|
||
AlignAfterOpenBracket: AlwaysBreak, | ||
AllowAllParametersOfDeclarationOnNextLine: "true", | ||
BinPackArguments: "false", | ||
BinPackParameters: "false", | ||
|
||
AlwaysBreakTemplateDeclarations: MultiLine, | ||
|
||
# BRACE POSITIONING | ||
# Braces at end of line: | ||
# | ||
# if (cond) { | ||
# x = 0; | ||
# } else { | ||
# x = 1; | ||
# } | ||
# | ||
# except for namespaces, functions, classes, (where indentation | ||
# often does not give us good visual cues): | ||
|
||
BreakBeforeBraces: Linux, | ||
|
||
# CONSTRUCTOR INITIALIZERS | ||
# Constructor initializer packed similarly to function parameters, | ||
# with separators before the member names. | ||
# | ||
# GOOD: | ||
# my_class::my_class() | ||
# : parent() | ||
# , member1(x) | ||
# , member2(y) | ||
# { | ||
# } | ||
# | ||
# BAD: | ||
# // Annoying to reorder and indent | ||
# my_class::my_class() | ||
# : parent(), | ||
# member1(x), | ||
# member2(y) | ||
# { | ||
# } | ||
# | ||
# // Annoying to reorder | ||
# my_class::my_class() : | ||
# parent(), | ||
# member1(x), | ||
# member2(y) | ||
# { | ||
# } | ||
|
||
BreakConstructorInitializers: BeforeComma, | ||
BreakInheritanceList: BeforeComma, | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: "true", | ||
# AllowAllConstructorInitializersOnNextLine: "false", | ||
|
||
# ADDITIONAL NOTES | ||
# | ||
# - Long comments at the end of lines cause unnecessary line | ||
# breaks. Better to comment above the line (do not add | ||
# add empty line between the comment and the line). | ||
# | ||
# - Multi-line comments should use `//` style (clang-format | ||
# does not cope well with other styles). | ||
# // Your comment here line 1 | ||
# // line 2 | ||
# | ||
# - Avoid `using namespace`, even in .cpp files. | ||
# | ||
# - Use `auto` only when it is strictly necessary, avoid otherwise. | ||
# | ||
# - Always use braces with control flow statements (if, for, while...) | ||
# GOOD: | ||
# if (condition) { | ||
# x = 0; | ||
# } else { | ||
# x = 1; | ||
# } | ||
# | ||
# BAD: | ||
# if (condition) | ||
# x = 0; | ||
# else | ||
# x = 1; | ||
# | ||
# - `//` can be used at the end of a line in an initializer to retain | ||
# formatting: | ||
# libsnark::pb_variable_array<FieldT> value = from_bits( | ||
# { | ||
# 0, 0, 1, 0, 1, 1, 1, 1, // <--- these breaks will remain | ||
# 0, 0, 0, 0, 0, 0, 0, 0, // | ||
# 0, 0, 0, 0, 0, 0, 0, 0, // | ||
# 0, 0, 0, 0, 0, 0, 0, 0, // | ||
# ... | ||
# | ||
# - Do not leave whitespace at the end of lines | ||
} |
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 |
---|---|---|
@@ -1,39 +1,46 @@ | ||
jsClient/node_modules/* | ||
jsClient/package-lock.json | ||
|
||
# Ignore the virtualenv in the python client | ||
pyClient/zeth-devenv/ | ||
/jsClient/node_modules/* | ||
/jsClient/package-lock.json | ||
|
||
# Ignore the build repo | ||
build/ | ||
/build/ | ||
|
||
# Ignore the coins we created | ||
coinstore/*.json | ||
/coinstore/ | ||
|
||
# Ignore the content of the keystore | ||
keystore/*.pem | ||
keystore/*.json | ||
/keystore/*.pem | ||
/keystore/*.json | ||
|
||
# Ignore the output of the trusted setup (ie: Proving and Verifying key) | ||
trusted_setup/*.raw | ||
trusted_setup/*.json | ||
/trusted_setup/*.raw | ||
/trusted_setup/*.json | ||
|
||
# Ignore the content of the debug folder | ||
debug/*json | ||
|
||
# Ignore node_modules | ||
zeth-contracts/node_modules/* | ||
|
||
# Ignore grpc code | ||
pyClient/prover_pb2.py | ||
pyClient/prover_pb2_grpc.py | ||
pyClient/pghr13_messages_pb2.py | ||
pyClient/pghr13_messages_pb2_grpc.py | ||
pyClient/groth16_messages_pb2.py | ||
pyClient/groth16_messages_pb2_grpc.py | ||
pyClient/util_pb2.py | ||
pyClient/util_pb2_grpc.py | ||
|
||
# Ignore pycash | ||
pyClient/__pycache__/ | ||
|
||
/zeth-contracts/node_modules/* | ||
|
||
# Ignore pyClient env and build directories | ||
/pyClient/api/*_pb2.py | ||
/pyClient/api/*_pb2_grpc.py | ||
/pyClient/api/*_pb2.pyi | ||
|
||
# Ignore test files | ||
/_test_contrib_*/ | ||
/_test_phase1_contrib_*/ | ||
/_test_contributors_from_csv/ | ||
/_test_server_phase*/ | ||
/_test_phase2_data/ | ||
|
||
# Ignore python cache dirs | ||
|
||
# Python temp files | ||
__pycache__ | ||
.mypy_cache | ||
env/ | ||
*.egg-info | ||
|
||
# Ignore some unix temp files | ||
*~ | ||
\#*\# |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "depends/libsnark"] | ||
path = depends/libsnark | ||
url = https://github.com/clearmatics/libsnark.git | ||
[submodule "depends/googletest"] | ||
path = depends/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "depends/libsodium"] | ||
path = depends/libsodium | ||
url = https://github.com/jedisct1/libsodium.git |
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,43 @@ | ||
services: | ||
- docker | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- clang-format | ||
homebrew: | ||
packages: | ||
- gmp | ||
- grpc | ||
- protobuf | ||
- boost | ||
- openssl | ||
- cmake | ||
- libtool | ||
- autoconf | ||
- automake | ||
- python | ||
# - llvm | ||
|
||
matrix: | ||
include: | ||
- env: CI_TASK=pyclient_check CI_USE_DOCKER=1 | ||
os: linux | ||
language: minimal | ||
- env: CI_TASK=build CI_CONFIG=Release CI_USE_DOCKER=1 | ||
os: linux | ||
language: minimal | ||
- env: CI_TASK=build CI_CONFIG=Debug CI_USE_DOCKER=1 CI_CHECK_FORMAT=1 | ||
os: linux | ||
language: minimal | ||
- env: CI_TASK=build CI_CONFIG=Release | ||
os: osx | ||
osx_image: xcode11 | ||
- env: CI_TASK=build CI_CONFIG=Debug | ||
os: osx | ||
osx_image: xcode11 | ||
- env: CI_TASK=build CI_CONFIG=Release CI_ZKSNARK=PGHR13 CI_USE_DOCKER=1 | ||
os: linux | ||
language: minimal | ||
|
||
script: CI_USE_DOCKER=${CI_USE_DOCKER} CI_CONFIG=${CI_CONFIG} CI_ZKSNARK=${CI_ZKSNARK} travis_wait 30 scripts/ci ${CI_TASK} |
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.