Bläddra i källkod

Merge remote-tracking branch 'origin/main' into main

DebenOldert 4 år sedan
förälder
incheckning
13132f6dc6
1 ändrade filer med 24 tillägg och 20 borttagningar
  1. 24 20
      README.md

+ 24 - 20
README.md

@@ -8,27 +8,29 @@ This is a small description of how the chain works and how data is being formatt
   "key": "public key of the contract",
   "id": "transaction id",
   "timestamp": "unix timestamp of transaction creation",
-  "data": "encrypted string of contract"
+  "data": "encrypted string of contract",
+  "encrypted key":"encrypted semmetric key"
 }
 ```
 
 ### Contract / Transaction data
 ```json
 {
-  "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" 
-  }]
+"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"
+          }
 }
 ```
 
@@ -36,9 +38,11 @@ This is a small description of how the chain works and how data is being formatt
 Terms are part of a contract.
 ```json
 {
-  "id": "id of the term",
-  "title": "title of the term",
-  "description": "description of the term",
-  "deadline": "unix timestamp of term deadline"
+"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"
 }
-```
+```