Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
087cbf6f
Unverified
Commit
087cbf6f
authored
May 01, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme,makefile: update readme and build instructions
parent
da766628
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
18 deletions
+33
-18
Makefile
Makefile
+5
-6
README.md
README.md
+28
-12
No files found.
Makefile
View file @
087cbf6f
SHELL
:=
/bin/bash
build
:
submodules libunicorn
mipsevm
contracts
build
:
submodules libunicorn contracts
.PHONY
:
build
submodules
:
...
...
@@ -38,11 +38,6 @@ libunicorn_rebuild:
make libunicorn
.PHONY
:
libunicorn_rebuild
mipsevm
:
cd
mipsevm
&&
go build
.PHONY
:
mipsevm
# Must be a definition and not a rule, otherwise it gets only called once and
# not before each test as we wish.
define
clear_cache
...
...
@@ -61,3 +56,7 @@ clean:
contracts
:
cd
contracts
&&
forge build
.PHONY
:
contracts
test
:
libunicorn
cd
mipsevm
&&
go
test
-v
./...
.PHONY
:
test
README.md
View file @
087cbf6f
...
...
@@ -5,9 +5,9 @@
---
The cannon (cannon cannon cannon) is an on chain interactive dispute engine implementing EVM-equivalent fault proofs
.
It's half geth, half MIPS, and whole aweso
me.
Cannon
*(cannon cannon cannon)*
is an onchain MIPS instruction emulator
.
Cannon supports EVM-equivalent fault proofs by enabling Geth to run onchain,
one instruction at a time, as part of an interactive dispute ga
me.
*
It's Go code
*
...that runs an EVM
...
...
@@ -15,9 +15,6 @@ It's half geth, half MIPS, and whole awesome.
*
...running compiled Go code
*
...that runs an EVM
For more information on Cannon's inner workings, check
[
this overview
][
overview
]
.
[
overview
]:
https://github.com/ethereum-optimism/optimistic-specs/wiki/Cannon-Overview
## Directory Layout
...
...
@@ -31,17 +28,36 @@ unicorn -- Sub-module, used by mipsevm for offchain MIPS emulation.
## Building
Pre-requisites: Go, Node.js, Make, and CMake.
### `unicorn`
To build unicorn from source (git sub-module), run:
```
make libunicorn
```
### `contracts`
The contracts are compiled with
[
`forge`
](
https://github.com/foundry-rs/foundry
)
.
```
make build
make test # verify everything works correctly
make contracts
```
### `mipsevm`
This requires
`unicorn`
to be built, as well as the
`contracts`
for testing.
To test:
```
make test
```
Also see notes in
`mipsevm/go.mod`
about the Unicorn dependency, if you wish to use Cannon as a Go library.
## License
MIT, see
[
`LICENSE`
](
./LICENSE
)
file.
Note: This code is unaudited. It in NO WAY should be used to secure any money until a lot more
testing and auditing are done. I have deployed this nowhere, have advised against deploying it, and
make no guarantees of security of ANY KIND.
**Note: This code is unaudited.**
In NO WAY should it be used to secure any monetary value before testing and auditing.
This is experimental software, and should be treated as such.
The authors of this project make no guarantees of security of ANY KIND.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment