orginal contract project:https://github.com/lorenzb/proveth.git
yarn
or npm install
truffle compile
Truffle Develop:
- start Truffle Develop(a simple ethereum node)
truffle develop
- deploy contract
truffle deploy --reset --network=develop
Harmony network ...
run func TestReceiptMPT(t *testing.T)
in go/derive_sha_test.go
, will generate /tmp/testcases.json
.
cd scripts
ln -s /tmp/testcases.json
truffle --network=develop exec mpt.js
- define Go struct in
go/receipt_rlp_test.go
- run
TestReceiptDecoding
ingo/receipt_rlp_test.go