Class: ValidationRequest

ValidationRequest(interest, onVerified, onValidationFailed, retry, stepCount)

new ValidationRequest(interest, onVerified, onValidationFailed, retry, stepCount)

A ValidationRequest is used to return information from PolicyManager.checkVerificationPolicy. Create a new ValidationRequest with the given values.
Parameters:
Name Type Description
interest Interest An interest for fetching more data.
onVerified function If the signature is verified, this calls onVerified(data).
onValidationFailed function If the signature check fails, this calls onValidationFailed(data, reason).
retry number The number of retrials when there is an interest timeout.
stepCount number The number of verification steps that have been done, used to track the verification progress.
Source: