sigma.serialization.SigmaPropIsProvenSerializer.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sigma-state_2.12 Show documentation
Show all versions of sigma-state_2.12 Show documentation
Interpreter of a Sigma-State language
The newest version!
package sigma.serialization
import sigma.ast.{SType, SigmaPropIsProven, Value}
import sigma.ast.syntax._
object SigmaPropIsProvenSerializer extends ValueSerializer[SigmaPropIsProven] {
override def opDesc = SigmaPropIsProven
def serialize(obj: SigmaPropIsProven, w: SigmaByteWriter): Unit = {
w.putValue(obj.input)
}
def parse(r: SigmaByteReader): Value[SType] = {
val p = r.getValue().asSigmaProp
SigmaPropIsProven(p)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy