/BASICS

Primary LanguageGo

Proof of concept implementation for "Data sharing in the metaverse with key abuse resistance based on decentralized CP-ABE"

Pre-requisites

File description

  • main.go run this file to 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

    bash genPrvKey.sh
  2. start ganache

    ganache --mnemonic "basics" -l 90071992547 -e 1000
  3. Compile the smart contract code

    bash compile.sh
  4. Run the main.go

    go run main.go