documentation changes for duplicate asset id

This commit is contained in:
Scott Sadler 2017-01-16 15:24:51 +01:00
parent 003519b0a8
commit 47f09c0e67

View File

@ -1,10 +1,11 @@
# The Digital Asset Model
To avoid redundant data in transactions, the digital asset model is different for `CREATE` and `TRANSFER` transactions.
The asset ID is the same as the ID of the CREATE transaction that defined the asset.
A digital asset's properties are defined in a `CREATE` transaction with the following model:
In the case of a CREATE transaction, the transaction ID is duplicated into the asset object for clarity and consistency in the database. The CREATE transaction also contains a user definable payload to describe the asset:
```json
{
"id": "<same as transaction ID (sha3-256 hash)>",
"data": "<json document>"
}
```