wamp-proto / wamp-xbr

The XBR Protocol - blockchain protocol for decentralized open data markets
https://xbr.network
Other
11 stars 16 forks source link

Check terms/meta multihash strings? #55

Open oberstet opened 4 years ago

oberstet commented 4 years ago

For metadata, eula and terms documents, we currently only support IPFS mutlihashes, as in

     *              to a ZIP archive file with market documents.
     * @param meta The XBR market metadata published by the market owner. IPFS Multihash pointing
     *             to a RDF/Turtle file with market metadata.

In addition to IPFS, we should also support plain HTTP URLs pointing to files.

oberstet commented 4 years ago

actually, nothing in the on-chain contracts checks for the supplied strings being an actual multihash .. and I'm not sure if we should check anything - changing title/labels accordingly