How to serialize and deserialize EncryptedValue ?
Closed this issue · 9 comments
Duplicate of #168
We still haven't prioritized this, since the values are pub
and can be serialized that way. A PR adding serde to types behind a serde
feature flag would be welcomed though.
@skeet70 okay but how do i suppose to get the SignedValue struct to pub because it is in the internal crate and it keeps telling me that the internal crate is private and i just cannot get it to public. Do you have any idea about that? Please help!
The reason why i need to get the SignedValue struct is EncryptedValue is derived from this struct
The reason why i need to get the SignedValue struct is EncryptedValue is derived from this struct
I'm not sure I understand why you need to do this. Could you clarify the use case a bit more?
@skeet70 hmmm well just skip all of these. In conclusion, do you have any recommendation or idea for serializing the Encrypted data struct :( i have been struggling with these days
From my point of view, i need to transfer the EncryptedValue to the other system to save or shared or sth like that and then i can build up again this struct in the ironcore system for using functionalities like transform function
Yeah, the link from the answer to the issue I marked this as a duplicate of is how we serialize EncryptedValue to another system. That code is from one of our other libraries that's using recrypt's public API just like you're trying to do.
Okay let me try researching it thank you for your help!