Skip to content

A tutorial for building modules for the Cosmos SDK

License

Notifications You must be signed in to change notification settings

datahop/Proof-of-Prestige

 
 

Repository files navigation

DataHop Project (Team-34) for Diffusion'19 Hackathon

This projects contains 3 main modules:

  • An Android app allowing users to exchange content using Bluetooth Low Energy and WiFi Direct.
  • A Cosmos-based blockchain implementation using Proof of Prestige reward scheme.
  • Visualisation module reading data from the blockchain and presenting them in a user-friendly way.

User exchange content they're interested in. After each p2p transfer, the sender can submti an acknowledgment to the blockchain and collect rewards. All the modules communicate using interoperable REST/JSON allowing for easy integration.

Tasks for the Hackathon

  • Add a UserInfo structure keeping user's coins and their prestige. Similar to the WhoIs structure defined in types.go (this includes implementing setters/getters)
  • Update prestige values of users with every block (using BeginBlock)
  • Accept file transfer acknowledgments, verify them and update user prestige (DeliverTx())
  • Make Tendermint to use prestige values instead of stake (where to store user’s prestige? Bank? Or custom structures? - need to consult Cosmos guys on that)

State Modification Messages

  • RegisterTransfer - register a transfer between 2 peers specifying sender, receiver, filename and an amount of exchanged prestige

About

A tutorial for building modules for the Cosmos SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 84.3%
  • Python 8.7%
  • HTML 2.4%
  • Shell 2.2%
  • Makefile 1.4%
  • CSS 0.7%
  • JavaScript 0.3%