quivr.models.SignatureVerificationValidator.scala Maven / Gradle / Ivy
The newest version!
package quivr.models
object SignatureVerificationValidator extends scalapb.validate.Validator[quivr.models.SignatureVerification] {
def validate(input: quivr.models.SignatureVerification): scalapb.validate.Result =
quivr.models.VerificationKeyValidator.validate(input.verificationKey) &&
quivr.models.WitnessValidator.validate(input.signature) &&
quivr.models.MessageValidator.validate(input.message)
}