Chia-Network / clvm

[Contract Language|Chia Lisp] Virtual Machine
Apache License 2.0
86 stars 35 forks source link

consume serialized SExp objects, without constructing the python tree #59

Closed arvidn closed 3 years ago

arvidn commented 3 years ago

This is a cheaper version of "parsing" serialized S-expressions. Instead of parsing it into a python tree of CLVM objects, it consumes the bytes from the stream that represent one S-Expression tree, and returns those bytes. This is a way to preserve the serialized form of a CLVM program.

This function is intended to be used by Chia Blockchain to preserve serialized programs, that can be passed into the rust implementation and parsed in rust.