diff options
Diffstat (limited to 'design-documents/018-contract-json.rst')
-rw-r--r-- | design-documents/018-contract-json.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/design-documents/018-contract-json.rst b/design-documents/018-contract-json.rst index 2162d6ed..051ed2f1 100644 --- a/design-documents/018-contract-json.rst +++ b/design-documents/018-contract-json.rst @@ -1,5 +1,5 @@ -Design Doc 018: Forgettable Data in JSON Contract Terms -####################################################### +DD 18: Forgettable Data in JSON Contract Terms +############################################## Summary ======= @@ -63,7 +63,7 @@ parent object. .. code-block:: json { - "delivery_address": ..., + "delivery_address": "...", "$forgettable": { "delivery_address": "<salt>" }, @@ -92,11 +92,11 @@ scrubbed and canonicalized value is put into the special ``$forgotten$`` member of the parent object. -.. code-block:: json +.. code-block:: javascript { ...props, - "delivery_address": ..., + "delivery_address": "...", "$forgettable": { "delivery_address": "<memb_salt>" }, @@ -149,7 +149,7 @@ SHA512. Test vector ----------- -The follwing input contains top-level and nested forgettable +The following input contains top-level and nested forgettable fields, as well as booleans, integers, strings and objects as well as non-forgettable fields. It is thus suitable as a minimal interoperability test: @@ -174,7 +174,7 @@ a minimal interoperability test: Hashing the above contract results in the following Crockford base32 encoded hash -``287VXK8T6PXKD05W8Y94QJNEFCMRXBC9S7KNKTWGH2G2J2D7RYKPSHNH1HG9NT1K2HRHGC67W6QM6GEC4BSN1DPNEBCS0AVDT2DBP5G''. +``287VXK8T6PXKD05W8Y94QJNEFCMRXBC9S7KNKTWGH2G2J2D7RYKPSHNH1HG9NT1K2HRHGC67W6QM6GEC4BSN1DPNEBCS0AVDT2DBP5G``. Note that typically the salt values must be chosen at random, only for this test we use static salt values. |