Skip to main content

Search Channel and Validate Data

The example-7 script is similar to previous example (Authorize Channel) that creates a channel as Owner and authorizes a User to write on it but:

mvn exec:_java -Dexec.mainClass=net.gradbase.how_tos.SearchChannelAndValidateData

Example source code: Example-7

Validate Channel's Data

Since the signature does not match, results is a set of tampered data, so the validation will notify it when running the following script:

// Now try to validate the manipulated data
JSONArray validated = userClient.validate(channelAddress, resuts);