Aucune description

AdamHorvath12 ae3f52c7d9 create keys debug il y a 4 ans
gui 74ada5e009 combining gui with hashing (still has bugs) il y a 4 ans
lib 924d9a135c hash debug il y a 4 ans
.gitignore 03e56c4d2c Initial program upload il y a 4 ans
README.md 08fc9085dc Add data description to README.md il y a 4 ans
create_keys.py ae3f52c7d9 create keys debug il y a 4 ans
gui.py 74ada5e009 combining gui with hashing (still has bugs) il y a 4 ans
linked data testing.ipynb da9cd449a3 fixed some bugs in the commenting part il y a 4 ans
linked_data.py f9ebfeb15b added contract update functionality to gui il y a 4 ans
main.py 6d5658abff Add ability to find transactions per address il y a 4 ans
requirements.txt 03e56c4d2c Initial program upload il y a 4 ans

README.md

dsp-blockchain

This is a small description of how the chain works and how data is being formatted.

Data formats

Transaction stored in chain

{
  "sender": "public key sender",
  "receiver": "public key receiver",
  "id": "transaction id",
  "timestamp": "unix timestamp of transaction creation",
  "data": "encrypted string of contract"
}

Contract / Transaction data

{
  "id": "contract id",
  "state": "state of the contract e.g. ACCEPTED|REJECTED etc",
  "title": "title of contract",
  "description": "description of contract",
  "deadline": "unix timestamp of contract deadline",
  "price": "price of contract",
  "initiator": "public key of address that created the contract",
  "worker": "public key of address that fulfills the contract",
  "initial_block": "block number contract created in",
  "modified_by": "public key of party last modified data",
  "last_comment": "comment regarding modification",
  "terms": [{
    "see": "Term data" 
  }]
}

Term data

Terms are part of a contract.

{
  "id": "id of the term",
  "title": "title of the term",
  "description": "description of the term",
  "deadline": "unix timestamp of term deadline"
}