API
Ancon Protocol - Universal Metadata
Author | Rogelio Morrell Caballero |
Category | VC, DID, PKI, Cryptography, NFT |
Created | 2021-08-23 |
Simple Summary
Enables an IPLD protocol level Metadata and Files smart contract for use with data economy use cases.
Abstract
Ancon delivers an immutable CID reference to a IPLD Node stored as a block in a Cosmos IAVL merkle tree. Similar to Flow Cadence
resource oriented language, Ancon Metadata is unique and must be implemented as a store prefix, where any account owns its resources. In our implementation, we defined accounts as a DID method that uses a ethr-did-registry
inspired implementation in Cosmos.
API
POST /ancon.v1.metadata.add
POST /ancon.v1.metadata.add
ancon.metadata.add(value, [options])
ancon.metadata.add(value, [options])
Adds an universal metadata.
Parameters
Metadata
Name | Type | Description |
---|---|---|
|
| Identifies the asset to which this metadata represents |
|
| Describes the asset to which this token represents |
|
| A URI pointing to a resource with mime type image/* representing the asset to which this token represents |
|
| Current intellectual property |
|
| The owner is a DID identifier |
|
| Transaction block |
|
| Is the verified credential for the metadata |
|
| References |
Returns
Type | Description |
---|---|
| An object that contains the CID |
example of the returned object:
Metadata JSON Schema
Example
A new NFT token can use Ancon Protocol
to store IPLD CID in Metadata to keep it verifiable.
Upload content and stores CID for each content, content needs to be CID or multihash to be verifiable.
Link your content to metadata accordingly and store it in Ancon
using AnconJS
Mint or anchor your Ancon metadata after its vetted by chain consensus protocol. The metadata is just a link to a gateway and always public.
GET /ancon/{cid}{path}
GET /ancon/{cid}{path}
ancon.metadata.get(hash, [options])
ancon.metadata.get(hash, [options])
Gets a metadata.
Parameters
File
Name | Type | Description |
---|---|---|
|
| Describes the path |
|
| IPLD multihash |
Returns
Type | Description |
---|---|
| An object that contains the data |
example of the returned object:
Last updated