8000 Rename directories [depends on #204] by dtebbs · Pull Request #211 · clearmatics/zeth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rename directories [depends on #204] #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
debug/*json

# Ignore node_modules
/zeth-contracts/node_modules/*
/zeth_contracts/node_modules/*

# Ignore pyClient env and build directories
/pyClient/api/*_pb2.py
/pyClient/api/*_pb2_grpc.py
/pyClient/api/*_pb2.pyi
# Ignore client env and build directories
/client/api/*_pb2.py
/client/api/*_pb2_grpc.py
/client/api/*_pb2.pyi

# Ignore test files
/_test_contrib_*/
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ https://eprint.iacr.org/2016/260).

```bash
# Start the ethereum test net by running the following commands
cd zeth-contracts
cd zeth_contracts

# If the install below fails with python errors, try running:
npm config set python python2.7
Expand All @@ -100,10 +100,10 @@ npm run testrpc
# Configure your environment
. ./setup_env.sh

cd pyClient
cd client
```

Follow the steps described in the [pyClient README](pyClient/README.md) to run
Follow the steps described in the [client README](client/README.md) to run
tests or invoke the zeth tools.

## Secure Multi Party Computation for the Groth16 SRS generation
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pyClient/README.md → client/README.md
< 10000 tr data-hunk="c2c4a8474870bd297d8118ff52d37d1f0a927e4bb26cdfacd580809e8f51a3a3" class="show-top-border">
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Ensure that the following are installed:
- [venv](https://docs.python.org/3/library/venv.html#module-venv) module.
- gcc

Execute the following inside the `pyClient` directory.
Execute the following inside the `client` directory.
```console
$ python -m venv env
$ source env/bin/activate
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pyClient/commands/utils.py → client/commands/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def from_json(json_str: str) -> MixerDescription:
def get_erc20_abi() -> Dict[str, Any]:
zeth_dir = get_zeth_dir()
openzeppelin_dir = join(
zeth_dir, "zeth-contracts", "node_modules", "openzeppelin-solidity")
zeth_dir, "zeth_contracts", "node_modules", "openzeppelin-solidity")
ierc20_path = join(
openzeppelin_dir, "contracts", "token", "ERC20", "IERC20.sol")
compiled_sol = compile_files([ierc20_path])
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def compile_token() -> Interface:
zeth_dir = get_zeth_dir()
allowed_path = join(
zeth_dir,
"zeth-contracts/node_modules/openzeppelin-solidity/contracts")
"zeth_contracts/node_modules/openzeppelin-solidity/contracts")
path_to_token = join(
zeth_dir,
"zeth-contracts/node_modules/openzeppelin-solidity/contracts",
"zeth_contracts/node_modules/openzeppelin-solidity/contracts",
"token/ERC20/ERC20Mintable.sol")
# Compilation
set_solc_version(SOL_COMPILER_VERSION)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pyClient/zeth/utils.py → client/zeth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def get_trusted_setup_dir() -> str:
def get_contracts_dir() -> str:
return os.environ.get(
'ZETH_CONTRACTS_DIR',
join(get_zeth_dir(), "zeth-contracts", "contracts"))
join(get_zeth_dir(), "zeth_contracts", "contracts"))


def string_list_flatten(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion libzeth/circuits/mimc/mimc.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void MiMCe7_permutation_gadget<FieldT>::setup_gadgets(

// The following constants correspond to the iterative computation of sha3_256
// hash function over the initial seed "clearmatics_mt_seed". See:
// pyClient/zethCodeConstantsGeneration.py for more details
// client/zethCodeConstantsGeneration.py for more details
template<typename FieldT>
void MiMCe7_permutation_gadget<FieldT>::setup_sha3_constants()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from Crypto.Hash import keccak
keccak_256 = lambda *args: keccak.new(digest_bits=256)

# Functions taken from zeth/pyClient/zethMimc.py
# Functions taken from zeth/client/zethMimc.py
def to_bytes(*args):
for i, _ in enumerate(args):
if isinstance(_, str):
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_copyright
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function check_copyright_files() {
}

if ! (git ls-files '*.py' | check_copyright_files && \
git ls-files 'pyClient/commands' | check_copyright_files && \
git ls-files 'client/commands' | check_copyright_files && \
git ls-files 'mpc/commands' | check_copyright_files && \
git ls-files '*.hpp' '*.cpp' '*.tcc' | check_copyright_files)
then
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ function format_check() {
}

function contracts_check() {
pushd zeth-contracts
pushd zeth_contracts
npm config set python python2.7
npm install
npm run check
popd
}

function pyclient_check() {
pushd pyClient
pushd client
python3 -m venv env
. env/bin/activate
pip install --upgrade pip --progress-bar off
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_zeth_cli_common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

TRUFFLE_DIR=`pwd`/zeth-contracts
TRUFFLE_DIR=`pwd`/zeth_contracts

function run_truffle() {
pushd ${TRUFFLE_DIR}
Expand Down
2 changes: 1 addition & 1 deletion setup_env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

export ZETH=`pwd`
export ZETH_CONTRACTS_DIR=$ZETH/zeth-contracts/contracts
export ZETH_CONTRACTS_DIR=$ZETH/zeth_contracts/contracts
export ZETH_DEBUG_DIR=$ZETH/debug

mkdir -p $ZETH/notestore
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0