Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AppCrypto/deTTP

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

172 Commits
172 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data exchange for the metaverse with accountable decentralized TTPs and incentive mechanisms

Pre-requisites

File description

  • main.go run this file to test the functionalities of the framework.

  • incentive.go run this file to test the incentive mechanism.

  • 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 "dttp" -l 90071992547 -e 1000
  3. Compile the smart contract code

    bash compile.sh
  4. Run the main.go

    go run main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.