This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extNibbles returned by getProof has the same number as the proof now
- Loading branch information
1 parent
13a7759
commit edb7a56
Showing
6 changed files
with
63 additions
and
38 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,33 @@ | ||
# MPT witness generator | ||
|
||
## Generate witnesses | ||
|
||
To generate witnesses for the MPT circuit, execute | ||
|
||
``` | ||
go test -v ./... | ||
``` | ||
|
||
To generate the tests that use a local blockchain you need a local `geth`. You would | ||
need to run something like: | ||
``` | ||
geth --dev --http --ipcpath ~/Library/Ethereum/geth.ipc | ||
``` | ||
The local `geth` is used to generate some tests that have a small number of accounts so that | ||
these accounts appear in the first or second level of the trie. You might need to remove the | ||
database if you already have some accounts: | ||
|
||
``` | ||
geth removedb | ||
``` | ||
|
||
The witness files will appear in generated_witnesses folder. | ||
|
||
## Format the code | ||
|
||
To format the code use: | ||
|
||
``` | ||
gofmt -w ./* | ||
``` |
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
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
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