Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit 2d390f4

Browse files
authored
Merge pull request #44 from trailofbits/22-readme-update
Update the README for v0.2.0
2 parents fa18c20 + 8052145 commit 2d390f4

File tree

4 files changed

+114
-18
lines changed

4 files changed

+114
-18
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Change Log
2+
3+
The format is based on [Keep a Changelog](http://keepachangelog.com/).
4+
5+
## [Unreleased](https://github.com/trailofbits/manticore/compare/0.2.2...HEAD)
6+
7+
## 0.2.0 — 2018-11-02
8+
9+
First formal release of Etheno.
10+
11+
### Added
12+
13+
- An [example](examples/ConstantinopleGasUsage) that can automatically reproduce [the Constantinople gas usage discrepancy](https://github.com/paritytech/parity-ethereum/pull/9746) that caused a hard-fork on Ropsten in October of 2018
14+
- More client integrations and support
15+
- Support for JSON RPC clients that have no local accounts and only accept signed raw transactions
16+
- Support for saving and loading genesis files
17+
- Support for Geth with either an autogenerated or user-provided genesis
18+
- Support for Parity with either an autogenerated or user-provided genesis
19+
- Automated transaction synchronization between chains (_e.g._, if clients are running with different genesis blocks)
20+
- Improved automated testing
21+
- Automated differential testing that reports differences between clients
22+
- Integration with the [Echidna](https://github.com/trailofbits/echidna) EVM fuzzer
23+
- Improved extensibility and user friendliness
24+
- Client and Plugin API
25+
- Logging framework with ANSI color on the terminal
26+
- Optional log directory with client- and plugin-specific log files, including auto-generated scripts to re-run the clients
27+
28+
### Changed
29+
30+
- The [`BrokenMetaCoin` example](examples/BrokenMetaCoin) was improved by adding various utilities for interacting with Manticore
31+
32+
## 0.0.1 — 2018-10-07
33+
34+
Prerelease at TruffleCon, 2018.
35+
36+
Initial Features:
37+
38+
- Manticore Integration
39+
- Truffle Integration
40+
- Ganache Integration
41+
- JSON RPC Multiplexing

README.md

Lines changed: 61 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
<br />
66

77

8-
Etheno is a JSON RPC multiplexer, analysis tool wrapper, and test integration tool. It eliminates the complexity of setting up analysis tools on large, multi-contract projects, like [Manticore](https://github.com/trailofbits/manticore/). In particular, custom Manticore analysis scripts require less code, are simpler to write, and integrate with Truffle.
8+
Etheno is the Ethereum testing Swiss Army knife. It’s a JSON RPC multiplexer, analysis tool wrapper, and test integration tool. It eliminates the complexity of setting up analysis tools like [Manticore](https://github.com/trailofbits/manticore/) and [Echidna](https://github.com/trailofbits/echidna) on large, multi-contract projects. In particular, custom Manticore analysis scripts require less code, are simpler to write, and integrate with Truffle.
99

10-
It is named after the Greek goddess [Stheno](https://en.wikipedia.org/wiki/Stheno), sister of Medusa, and mother of Echidna—which also happens to be the name of [our EVM property-based fuzz tester](https://github.com/trailofbits/echidna).
10+
If you are a smart contract developer, you should use Etheno to test your contracts. If you are an Ethereum client developer, you should use Etheno to perform differential testing on your implementation. For example, Etheno is [capable of automatically reproducing](examples/ConstantinopleGasUsage) the Constantinople gas usage consensus bug that caused a fork on Ropsten.
11+
12+
Etheno is named after the Greek goddess [Stheno](https://en.wikipedia.org/wiki/Stheno), sister of Medusa, and mother of Echidna—which also happens to be the name of [our EVM property-based fuzz tester](https://github.com/trailofbits/echidna).
1113

1214
## Features
1315

@@ -43,10 +45,8 @@ Alternatively, natively install Etheno in a few shell commands:
4345
# Install system dependencies
4446
sudo apt-get update && sudo apt-get install python3 python3-pip -y
4547
46-
# Clone and install Etheno
47-
git clone https://github.com/trailofbits/etheno.git
48-
cd etheno
49-
pip3 install .
48+
# Install Etheno
49+
pip3 install --user etheno
5050
5151
# Use the Etheno CLI
5252
cd /path/to/a/truffle/project
@@ -65,10 +65,23 @@ This command starts a JSON RPC server and forwards all messages to the given cli
6565
etheno https://client1.url.com:1234/ https://client2.url.com:8545/ http://client3.url.com:8888/
6666
```
6767

68-
* `--port` or `-p` allows you to specify a port on which to run Etheno's JSON RPC server (default is 8545)
68+
* `--port` or `-p` allows you to specify a port on which to run Ethenos JSON RPC server (default is 8545)
6969
* `--run-publicly` allows incoming JSON RPC connections from external computers on the network
7070
* `--debug` will run a web-based interactive debugger in the event that an internal Etheno client throws an exception while processing a JSON RPC call; this should _never_ be used in conjunction with `--run-publicly`
7171
* `--master` or `-s` will set the “master” client, which will be used for synchronizing with Etheno clients like Manticore. If a master is not explicitly provided, it defaults to the first client listed.
72+
* `--raw`, when prefixed before a client URL, will cause Etheno to auto-sign all transactions and submit then to the client as raw transactions
73+
74+
### Geth and Parity Integration
75+
76+
A Geth and/or Parity instance can be run as a private chain with
77+
* `--geth` or `-go` for Geth
78+
* `--parity` or `-pa` for Parity
79+
80+
Each will be instantiated with an autogenerated genesis block. You may provide a custom `genesis.json` file in Geth format using the `--genesis` or `-j` argument. The genesis used for each run will automatically be saved to the log directory (if one is provided using the `--log-dir` option), or it can be manually saved to a location provided with the `--save-genesis` option.
81+
82+
The network ID of each client will default to 0x657468656E6F (equal to the string `etheno` in ASCII). This can be overridden with the `--network-id` or `-i` option.
83+
84+
EIP and hard fork block numbers can be set within a custom genesis.json as usual, or they may be specified as commandline options such as `--constantinople`.
7285

7386
### Ganache Integration
7487

@@ -77,21 +90,41 @@ A Ganache instance can automatically be run within Etheno:
7790
etheno --ganache
7891
```
7992

80-
* `--ganache-port` will set the port on which Ganache is run; if omitted, Etheno will choose the lowest port higher than the port on which Etheno's JSON RPC server is running
93+
* `--ganache-port` will set the port on which Ganache is run; if omitted, Etheno will choose the lowest port higher than the port on which Ethenos JSON RPC server is running
8194
* `--ganache-args` lets you pass additional arguments to Ganache
8295
* `--accounts` or `-a` sets the number of accounts to create in Ganache (default is 10)
8396
* `--balance` or `-b` sets the default balance (in Ether) to seed to each Ganache account (default is 100.0)
8497
* `--gas-price` or `-c` sets the default gas price for Ganache (default is 20000000000)
8598

99+
### Differential Testing
100+
101+
Whenever two or more clients are run within Etheno, the differential
102+
testing plugin will automatically be loaded. This plugin checks for a
103+
variety of different discrepancies between the clients, such as gas
104+
usage differences. A report is printed when Etheno exits.
105+
106+
This plugin can be disabled with the `--no-differential-testing` option.
107+
108+
### Property-Based Fuzz Testing
109+
110+
Echidna can be run to fuzz test the clients, which is useful for differential testing:
111+
```
112+
etheno --echidna
113+
```
114+
By default, Echidna deploys a generic fuzz testing contract to all clients, enumerates a minimal set of transactions that maximize the coverage of the contract, sends those transactions to the clients, and then exits.
115+
116+
* `--fuzz-limit` limits the number of transactions that Echidna will emit
117+
* `--fuzz-contract` lets the user specify a custom contract for Echidna to deploy and fuzz
118+
86119
### Manticore Client
87120

88-
Manticore—which, by itself, does not implemnent a JSON RPC interface—can be run as an Etheno client, synchronizing its accounts with Etheno's master client and symbolically executing all transactions sent to Etheno.
121+
Manticore—which, by itself, does not implemnent a JSON RPC interface—can be run as an Etheno client, synchronizing its accounts with Ethenos master client and symbolically executing all transactions sent to Etheno.
89122
```
90123
etheno --manticore
91124
```
92125
This alone will not run any Manticore analyses; they must either be run manually, or automated through [the `--truffle` command](#truffle-integration);
93126

94-
* `--manticore-verbosity` sets Manticore's logging verbosity (default is 3)
127+
* `--manticore-verbosity` sets Manticores logging verbosity (default is 3)
95128
* `--manticore-max-depth` sets the maximum state depth for Manticore to explore; if omitted, Manticore will have no depth limit
96129

97130
### Truffle Integration
@@ -101,7 +134,7 @@ Truffle migrations can automatically be run within a Truffle project:
101134
etheno --truffle
102135
```
103136

104-
When combined with the `--manticore` option, this will automatically run Manticore's default analyses on all contracts created once the Truffle migration completes:
137+
When combined with the `--manticore` option, this will automatically run Manticores default analyses on all contracts created once the Truffle migration completes:
105138
```
106139
etheno --truffle --manticore
107140
```
@@ -117,6 +150,20 @@ This script does not need to import Manticore or create a `ManticoreEVM` object;
117150

118151
Additional arguments can be passed to Truffle using `--truffle-args`.
119152

153+
### Logging
154+
155+
By default, Etheno only prints log messages to the console with a log
156+
level defaulting to `INFO`. An alternative log level can be specified
157+
with `--log-level` or `-l`. You can specify a log file with the
158+
`--log-file` option. In addition, you can provide the path to a
159+
logging directory with `--log-dir` in which the following will be
160+
saved:
161+
* a complete log file including log messages at all log levels;
162+
* separate log files for each Etheno client and plugin;
163+
* the genesis file used to instantiate clients;
164+
* a subdirectory in which each client and plugin can store additional files such as test results;
165+
* a script to re-run Geth and/or Parity using the same genesis and chain data that Etheno used.
166+
120167
## Requirements
121168

122169
* Python 3.6 or newer
@@ -127,8 +174,8 @@ Additional arguments can be passed to Truffle using `--truffle-args`.
127174
* [Truffle and Ganache](https://truffleframework.com/) for their associated integrations
128175
* [Geth](https://github.com/ethereum/go-ethereum) and/or [Parity](https://github.com/paritytech/parity-ethereum), if you would like to have Etheno run them
129176
* [Echidna](https://github.com/trailofbits/echidna), for smart contract fuzzing and differential testing
130-
** Note that Etheno currently requires the features in the [`dev-no-hedgehog` branch](https://github.com/trailofbits/echidna/tree/dev-no-hedgehog); Etheno will prompt you to automatically install this when you try and run it the first time
131-
** Running Echidna also requires the [`solc`](https://github.com/ethereum/solidity) compiler
177+
* Note that Etheno currently requires the features in the [`dev-no-hedgehog` branch](https://github.com/trailofbits/echidna/tree/dev-no-hedgehog); Etheno will prompt you to automatically install this when you try and run it the first time
178+
* Running Echidna also requires the [`solc`](https://github.com/ethereum/solidity) compiler
132179

133180
## Getting Help
134181

@@ -142,4 +189,4 @@ Documentation is available in several places:
142189

143190
## License
144191

145-
Etheno is licensed and distributed under the [AGPLv3](LICENSE) license. [Contact us](mailto:[email protected]) if you're looking for an exception to the terms.
192+
Etheno is licensed and distributed under the [AGPLv3](LICENSE) license. [Contact us](mailto:[email protected]) if youre looking for an exception to the terms.

etheno/etheno.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION='0.0.1'
1+
VERSION='0.2.0'
22
VERSION_NAME="ToB/v%s/source/Etheno" % VERSION
33
JSONRPC_VERSION = '2.0'
44
VERSION_ID=67

setup.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
setup(
55
name='etheno',
6-
description='Etheno is a JSON RPC multiplexer, Manticore wrapper, and test framework integration tool.',
6+
description='Etheno is a JSON RPC multiplexer, Manticore wrapper, differential fuzzer, and test framework integration tool.',
77
url='https://github.com/trailofbits/etheno',
88
author='Trail of Bits',
9-
version='0.0.1',
9+
version='0.2.0',
1010
packages=find_packages(),
1111
python_requires='>=3.6',
1212
install_requires=[
@@ -24,5 +24,13 @@
2424
'console_scripts': [
2525
'etheno = etheno.__main__:main'
2626
]
27-
}
27+
},
28+
classifiers=[
29+
'Development Status :: 4 - Beta',
30+
'Environment :: Console',
31+
'Intended Audience :: Developers',
32+
'License :: OSI Approved :: GNU Affero General Public License v3',
33+
'Topic :: Security',
34+
'Topic :: Software Development :: Testing'
35+
]
2836
)

0 commit comments

Comments
 (0)