Edited the changes to transaction model docs

This commit is contained in:
Troy McConaghy 2017-11-06 14:30:01 +01:00
parent 636c28d311
commit cae883e9cb

View File

@ -46,10 +46,10 @@ Here's some explanation of the contents:
- **metadata**: User-provided transaction metadata. - **metadata**: User-provided transaction metadata.
It can be any valid JSON document, or ``null``. It can be any valid JSON document, or ``null``.
**NOTE** when using MongoDB for storage certain restriction apply to all **NOTE:** When using MongoDB for storage, certain restriction apply
(including nested) keys of ``"metadata"`` JSON document i.e. valid keys to all (including nested) keys of the ``"data"`` JSON document:
should **not** begin with ``$`` character and cannot contain ``.`` or 1) keys (i.e. key names, not values) must **not** begin with the ``$`` character, and
null character (Unicode code point 0000). 2) keys must not contain ``.`` or the null character (Unicode code point 0000).
**How the transaction ID is computed.** **How the transaction ID is computed.**
1) Build a Python dictionary containing ``version``, ``inputs``, ``outputs``, ``operation``, ``asset``, ``metadata`` and their values, 1) Build a Python dictionary containing ``version``, ``inputs``, ``outputs``, ``operation``, ``asset``, ``metadata`` and their values,