mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
documentation changes for duplicate asset id
This commit is contained in:
parent
003519b0a8
commit
47f09c0e67
@ -1,10 +1,11 @@
|
|||||||
# The Digital Asset Model
|
# 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
|
```json
|
||||||
{
|
{
|
||||||
|
"id": "<same as transaction ID (sha3-256 hash)>",
|
||||||
"data": "<json document>"
|
"data": "<json document>"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user