registry-contract

command module
v0.0.0-...-fe7d14c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 7 Imported by: 0

README

Registry Contract Build Status

Registry smart contract

API

registerMedia(mediaID, metadata string)

Method that registers a metadata (JSON object) with the given media id.
Metadata object structure:

[media_id: string]: {
    imageUrl: string
    postedAt: string
    copyrightAttribution: string
    hash: string
}
areRegistered(ids string) string

Method that checks whether the list of passed media ids are already registered.
Due to limitations of smart contracts API, arguments and response are in the following string format.
E.g.

areRegistered("id1,id2,id3") 
// "101"

1 means that id corresponding to a position of 1 is registered,0 - id is not registered.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL