Nenhuma descrição

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

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

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