-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Metadata features are being discussed in following NIP discussion thread: https://github.com/nemtech/NIP/issues/8
Following task assignment describes the Metadata key/value association features in the catapult-server project: https://github.com/nemtech/catapult-server/issues/17
--
Implementation will need the following modules to be added/modified:
- Add interface for
MetadataTarget - Make
Account,MosaicandNamespaceimplementMetadataTarget - Add new transaction type
MetadataTransactionwith following transaction data:
| Field | Type | Description |
|---|---|---|
| Target Type | enum | Type of metadata target |
| Target Id | union{signer, targetType, targetId, metadataKey} | Identifier of the metadata target |
| Metadata key | uint64_t | Metadata identifier |
| Metadata value | byte* | Metadata payload (transaction.message-alike) |
| Metadata value hash | hash_256 | Hash of the payload to allow pruning. If payload size is less than 32 bytes, it will be inlined in this field (prevents pruning) |
-
Additionally,
MetadataTransactionwill be possible only withinAggregateBondedtransaction because metadata assignments needs opt-in logic. -
Default maximum payload content size 1024 bytes (transaction.message alike)
-
Discuss with catapult-rest team to provide with
MetadataHttpimplementation with :MetadataHttp.getMetadata(targetType, targetId, metadataKey)MetadataHttp.getMetadataFromIssuer(issuer, targetType, targetId, metadataKey)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request