Geen omschrijving

justtheboss97 2a5fbecbde Update README.md 4 jaren geleden
.idea 92b583e6f6 Fixed directory creation 4 jaren geleden
data c30eacdd4c finishing touches, commenting code, and cleaning up code 4 jaren geleden
gui c30eacdd4c finishing touches, commenting code, and cleaning up code 4 jaren geleden
lib c30eacdd4c finishing touches, commenting code, and cleaning up code 4 jaren geleden
.gitignore 03e56c4d2c Initial program upload 4 jaren geleden
README.md 2a5fbecbde Update README.md 4 jaren geleden
create_keys.py c30eacdd4c finishing touches, commenting code, and cleaning up code 4 jaren geleden
gui.py c30eacdd4c finishing touches, commenting code, and cleaning up code 4 jaren geleden
linked data testing.ipynb da9cd449a3 fixed some bugs in the commenting part 4 jaren geleden
linked_data.py f9ebfeb15b added contract update functionality to gui 4 jaren geleden
main.py ea0790061d more encryption fixes 4 jaren geleden
requirements.txt 03e56c4d2c Initial program upload 4 jaren geleden

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

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

Contract / Transaction data

{
"id": "public key",
"type": "type of transaction",
"date of initiation": "time of day",
"data": {"client": "name of client",
        "contractor": "name of contractor",
        "discription": "discription of the contract",
        "name": "name of the contract"},
"terms": {"deadline": "deadline",
          "accepted": "has contract been accepted",
          "progress": "0%",
          "price": "price",
          "Sign time": "time the contract was accepted",
          "comments": "dictonary of comments",
          "any other term": "with its value"
          }
}

Term data

Terms are part of a contract.

{
"id": "public key of contract",
"update id": "unique id of update",   
"updated": "what is it updating",
"type": "transaction type",
"last update": "time",
"accepted": "has update been accepted"
}