mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
* stored CL object to enable the usage Fastssz's HashTreeRoot(). added basic test * refactorization - using interfaces instead of storing original object * added tests covering ssz custom types * renamed hash_tree_root to ssz_interface as it contains MarshalSSZ and UnmarshalSSZ functions * run gazelle * renamed test and improved comments * refactored test and extend to marshalSSZ and UnmarshalSSZ * added changelog * updated comment * Changed SSZIface name to SSZObject. Removed MarshalSSZ and UnmarshalSSZ function signatures from interface as they are not used still. Refactored tests. * renamed file ssz_interface.go to ssz_object.go. merge test from ssz_interface_test.go into query_test.go. reordered source SSZObject field from sszInfo struct * sticked SSZObject interface to HashTreeRoot() function, the only one needed so far * run gazelle :) --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>