xyz.stratalab.consensus.models.SignatureKesProductValidator.scala Maven / Gradle / Ivy
The newest version!
package xyz.stratalab.consensus.models
object SignatureKesProductValidator extends scalapb.validate.Validator[xyz.stratalab.consensus.models.SignatureKesProduct] {
def validate(input: xyz.stratalab.consensus.models.SignatureKesProduct): scalapb.validate.Result =
xyz.stratalab.consensus.models.SignatureKesSumValidator.validate(input.superSignature) &&
xyz.stratalab.consensus.models.SignatureKesSumValidator.validate(input.subSignature) &&
scalapb.validate.Result.run(io.envoyproxy.pgv.BytesValidation.length("SignatureKesProduct.subRoot", input.subRoot, 32))
}