All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.plasmalabs.consensus.models.SlotDataValidator.scala Maven / Gradle / Ivy

The newest version!
package org.plasmalabs.consensus.models

object SlotDataValidator extends scalapb.validate.Validator[org.plasmalabs.consensus.models.SlotData] {
  def validate(input: org.plasmalabs.consensus.models.SlotData): scalapb.validate.Result =
    org.plasmalabs.consensus.models.SlotIdValidator.validate(input.slotId) &&
    org.plasmalabs.consensus.models.SlotIdValidator.validate(input.parentSlotId) &&
    scalapb.validate.Result.run(io.envoyproxy.pgv.BytesValidation.length("SlotData.rho", input.rho, 64)) &&
    scalapb.validate.Result.run(io.envoyproxy.pgv.BytesValidation.length("SlotData.eta", input.eta, 32))
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy