-
Golanghttps://go.dev/dl/ -
Solidityhttps://docs.soliditylang.org/en/v0.8.2/installing-solidity.html Version: 0.8.20 -
Solidity compiler (solc)https://docs.soliditylang.org/en/latest/installing-solidity.html
Version: 0.8.25-develop -
Ganache-clihttps://www.npmjs.com/package/ganache-cli -
AbigenVersion: v1.14.3go get -u github.com/ethereum/go-ethereum go install github.com/ethereum/go-ethereum/cmd/[email protected]
-
tests/*test the functionalities of the framework. -
compile/contract/The folder stores contract source code file (.sol) and generated go contract file. -
compile/compile.shThe script file compiles solidity and generates go contract file. -
genPrvKey.shThe script file generates accounts and stores in the.envfile.
-
Generate private keys to generate the
.envfile. Be sure that ganache is not started when runing below command.bash genPrvKey.sh
-
start ganache
ganache --mnemonic "email" -l 90071992547 -e 100000 -
lauch IPFS Desktop
-
Compile the smart contract code
bash compile.sh
-
Start the monitor process (optional)
python monitorEvent.py
-
Test the Email system
cd tests go test
or
go test -v -run TestBcstLinkableClusteror
go test Bcst_test.go -v