sigmastate-interpreter
sigmastate-interpreter copied to clipboard
Implement binary serialization and deserialization for every type
Serialization and deserialization already available for following types :
- Box - bytes and bytesWithoutRef methods
- GroupElement - getElement | decodePoint in global methods
- SigmaProp - propBytes (and there are options to deserialize it along with execution via executeFrom* only)
- Byte, Short, Int, Long, BigInt (numeric types) - toBytes | byteArrayToBigInt and byteArrayToLong
So there is need for:
- Box deserialization
- Header serialization and deserialization
- byteArrayToInt and byteArrayToShort
- SigmaProp deserialization
- AVLTree serialization and deserialization
Deserialization of everything mentioned is done in #979 . Header.toBytes done in #975
Serialization of everything mentioned and more done in #979 and #989.