You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If .encode is used in reality anyway, is it possible to remove #[serde(into = "RawExtendedDataSquare", try_from = "RawExtendedDataSquare")] so at least simmetrical binary serialization/deserialization works?
There is no symmetry in case of EDS because Deserialize is not implemented for it at all. I think that'd be the correct way also for Sample and Row, to just remove the Deserialize from them. They all serialize into Raw format, and then can be deserialized into Raw again but requiring additional info to reconstruct original type using from_raw.
If you need serde, I think you could wrap them in a struct containing also additional information required to make the deserialization correct
There is no symmetry in case of EDS because
Deserialize
is not implemented for it at all. I think that'd be the correct way also forSample
andRow
, to just remove theDeserialize
from them. They all serialize intoRaw
format, and then can be deserialized intoRaw
again but requiring additional info to reconstruct original type usingfrom_raw
.If you need serde, I think you could wrap them in a struct containing also additional information required to make the deserialization correct
Originally posted by @zvolin in #495 (comment)
The text was updated successfully, but these errors were encountered: