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:
- Java
- Node.js
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:
- Java
- Nodejs
// Now try to validate the manipulated data
JSONArray validated = userClient.validate(channelAddress, resuts);
// Now try to validate the manipulated data
const validationResult2 = await userClient.validate(channelAddress, results);