Revert "duplicate asset ID" and apply "get_txids_filtered" interface.

This commit is contained in:
Scott Sadler
2017-01-26 13:52:09 +01:00
parent 05fdcef670
commit adb579ac0a
6 changed files with 73 additions and 78 deletions

View File

@@ -1,11 +1,10 @@
# The Digital Asset Model
The asset ID is the same as the ID of the CREATE transaction that defined the asset.
To avoid redundant data in transactions, the digital asset model is different for `CREATE` and `TRANSFER` transactions.
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:
A digital asset's properties are defined in a `CREATE` transaction with the following model:
```json
{
"id": "<same as transaction ID (sha3-256 hash)>",
"data": "<json document>"
}
```