Whole deserialization works.
You can simply follow the instructions in Runner Readme and copy the whole file from Python parser without any modifications to the runner/resources/parsein.txt.
I've destructed FriConfig - inner_layers into Array<felt252> but it is array of (felt252, VectorCommitmentConfig). To support that we need the parser to somehow encode underlying objects structure, because it needs to know how many elements are there in the array - to know that it needs to know the size of the structs inside array.
I've also destructed FriWitness - layers into Array<felt252> (that was the case where we had nested arrays) for simplicity, but we can try to deserialize it using Serde or enhance parser further to support objects in arrays.
Whole deserialization works. You can simply follow the instructions in Runner Readme and copy the whole file from Python parser without any modifications to the
runner/resources/parsein.txt
.I've destructed FriConfig - inner_layers into
Array<felt252>
but it is array of(felt252, VectorCommitmentConfig)
. To support that we need the parser to somehow encode underlying objects structure, because it needs to know how many elements are there in the array - to know that it needs to know the size of the structs inside array.I've also destructed FriWitness - layers into
Array<felt252>
(that was the case where we had nested arrays) for simplicity, but we can try to deserialize it usingSerde
or enhance parser further to support objects in arrays.