An Orbs smart contract managing a photo registry over the blockchain.
Supports the following public API:
Registers a photo with metadata
register(phash string, meta string)
phash
is pHash string of the registering photo
meta
is the registering photo JSON metadata
Verifies if photo(s) were registered with a given pHash
verify(phash string) string
phash
is pHash string of the registering photo
Returns the match photo's metadata
Searches photos similar to photo(s) with a given pHash (including phto(s) themselves)
search(phash string, minScore uint64) string
phash
is pHash string of the registering photo
minScore
is the minimum Hamming Distance from 0 to 100
Returns JSON array of matching photos' metadata with the scores