/email

Primary LanguageGo

Proof of concept implementation for "Email in the blockchain era"

Pre-requisites

File description

  • tests/* test the functionalities of the framework.

  • compile/contract/ The folder stores contract source code file (.sol) and generated go contract file.

  • compile/compile.sh The script file compiles solidity and generates go contract file.

  • genPrvKey.sh The script file generates accounts and stores in the.env file.

How to run

  1. Generate private keys to generate the .env file. Be sure that ganache is not started when runing below command.

    bash genPrvKey.sh
  2. start ganache

    ganache --mnemonic "email" -l 90071992547 -e 100000
  3. Compile the smart contract code

    bash compile.sh
  4. Start the IPFS serivce

  5. Start the monitor process (optional)

    python monitorEvent.py
  6. Test the Email system

    cd tests
    go test

    or

    go test -v -run TestBcstLinkableCluster

    or

    go test Bcst_test.go -v