quivr.models.PreimageValidator.scala Maven / Gradle / Ivy
The newest version!
package quivr.models
object PreimageValidator extends scalapb.validate.Validator[quivr.models.Preimage] {
def validate(input: quivr.models.Preimage): scalapb.validate.Result =
scalapb.validate.Result.run(io.envoyproxy.pgv.BytesValidation.maxLength("Preimage.input", input.input, 16384)) &&
scalapb.validate.Result.run(io.envoyproxy.pgv.BytesValidation.maxLength("Preimage.salt", input.salt, 16384))
}