Closed fearlessfe closed 5 months ago
I want to ser TestList, which is a ssz list
TestList
TestList [][]byte
But I must use a struct to wrap it as below
type TestStruct struct { TestList [][]byte }
Because TestStruct is a container, the ser result is container offset + TestList.
TestStruct
container offset
How can i get the ssz result of only TestList.
That specific example cannot be done. If you have a struct it is always assumed to be a container. What is the use case for this? Is this part of the ssz spec?
same issue #135
I want to ser
TestList
, which is a ssz listBut I must use a struct to wrap it as below
Because
TestStruct
is a container, the ser result iscontainer offset
+TestList
.How can i get the ssz result of only
TestList
.