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