# dsp-blockchain This is a small description of how the chain works and how data is being formatted. ## Data formats ### Transaction stored in chain ```json { "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 ```json { "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. ```json { "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" } ```