IronCoreLabs / recrypt-rs

A set of cryptographic primitives for building a multi-hop Proxy Re-encryption scheme, known as Transform Encryption.
https://crates.io/crates/recrypt
GNU Affero General Public License v3.0
144 stars 23 forks source link

How to serialize and deserialize EncryptedValue ? #180

Closed sagara11 closed 1 year ago

skeet70 commented 1 year ago

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.

sagara11 commented 1 year ago

@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 commented 1 year ago

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

sagara11 commented 1 year ago

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

skeet70 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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