Keine Beschreibung

DebenOldert 13132f6dc6 Merge remote-tracking branch 'origin/main' into main vor 4 Jahren
.idea 92b583e6f6 Fixed directory creation vor 4 Jahren
data c30eacdd4c finishing touches, commenting code, and cleaning up code vor 4 Jahren
gui c30eacdd4c finishing touches, commenting code, and cleaning up code vor 4 Jahren
lib c30eacdd4c finishing touches, commenting code, and cleaning up code vor 4 Jahren
.gitignore 03e56c4d2c Initial program upload vor 4 Jahren
README.md 2a5fbecbde Update README.md vor 4 Jahren
create_keys.py c30eacdd4c finishing touches, commenting code, and cleaning up code vor 4 Jahren
gui.py c30eacdd4c finishing touches, commenting code, and cleaning up code vor 4 Jahren
linked data testing.ipynb da9cd449a3 fixed some bugs in the commenting part vor 4 Jahren
linked_data.py f9ebfeb15b added contract update functionality to gui vor 4 Jahren
main.py ea0790061d more encryption fixes vor 4 Jahren
requirements.txt 3683806db7 Update requirements.txt for pip vor 4 Jahren

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"
}