Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to serialize and deserialize EncryptedValue ? #180

Closed
sagara11 opened this issue Jul 16, 2023 · 9 comments
Closed

How to serialize and deserialize EncryptedValue ? #180

sagara11 opened this issue Jul 16, 2023 · 9 comments

Comments

@sagara11
Copy link

No description provided.

@sagara11 sagara11 changed the title How to serialize EncryptedValue ? How to serialize and deserialize EncryptedValue ? Jul 16, 2023
@skeet70
Copy link
Member

skeet70 commented Jul 17, 2023

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 skeet70 closed this as completed Jul 17, 2023
@sagara11
Copy link
Author

@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!

@sagara11
Copy link
Author

The reason why i need to get the SignedValue struct is EncryptedValue is derived from this struct

@sagara11
Copy link
Author

they keep warning me this although i have changed the scope of internal module in recrypt.rs file
image

@skeet70
Copy link
Member

skeet70 commented Jul 24, 2023

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?

@sagara11
Copy link
Author

@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

@sagara11
Copy link
Author

sagara11 commented Jul 24, 2023

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

@skeet70
Copy link
Member

skeet70 commented Jul 24, 2023

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.

@sagara11
Copy link
Author

Okay let me try researching it thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants