mlspp icon indicating copy to clipboard operation
mlspp copied to clipboard

State is not serializable

Open sapostq opened this issue 2 years ago • 1 comments

Hey,

I'm trying to persist the latest state of the group. However tls::marshal(state) fails as State is not serializable. For our use case in memory caching cannot be relied on. What's the suggested way to achieve this?

Any help would be appreciated.

Thanks

sapostq avatar Mar 01 '23 11:03 sapostq

You are correct that this is an issue. I think that a PR to make State serializable would be fairly compact -- you would just need to add a TLS_SERIALIZABLE macro invocation to the State definition, and maybe make some of the constituent types also serializable. I would be happy to review a PR, this would be good functionality to have.

bifurcation avatar Aug 24 '23 20:08 bifurcation