Lib_scoru_wasm: Tree encoders-decoders
Context
Work based on this branch from @ole.kruger.
This MR introduces a new module Tree_encoding_decoding that can be used for constructing encoders/decoders similar to Data_encoding.
The plan is to:
- Address #3081 (closed) by replace the
Wasm_decodingsmodule to one that uses theTree_encoding_decodingto also produce encoders. - Use for #3083 (closed) to encode/decode configuration.
The Tree_encoding_decoding can be compatible with Thunk by using the Thunk.custom function, see !5654 (merged).
Manually testing the MR
dune exec src/lib_scoru_wasm/test/test_scoru_wasm.exe -- test "$Encodings^"
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Joel Bjornson