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
let transformed_val = recrypt.transform(
encrypted_val,
initial_to_target_transform_key,
&signing_keypair).unwrap();
Core implementation does not support Serialization
#[derive(Debug, Clone, PartialEq, Eq, Hash)] //cannot derive Copy because of NonEmptyVec
pub enum EncryptedValue {
/// Value which has been encrypted, but not transformed
/// `ephemeral_public_key` - public key of the ephemeral private key that was used to encrypt
/// `encrypted_message` - encrypted symmetric key
/// `auth_hash` - authentication hash for the Plaintext
/// `public_signing_key` - public portion of Ed25519 signing key
/// `signature` - Ed25519-produced signature
EncryptedOnceValue {
ephemeral_public_key: PublicKey,
encrypted_message: EncryptedMessage,
auth_hash: AuthHash,
public_signing_key: PublicSigningKey,
signature: Ed25519Signature,
},
/// Value which has been encrypted and then transformed n times for n > 0.
/// `ephemeral_public_key` - public key of the ephemeral private key that was used to encrypt
/// `encrypted_message` - encrypted symmetric key
/// `auth_hash` - authentication hash for the Plaintext
/// `transform_blocks` - information used in transformation process. One entry for each transform.
/// `public_signing_key` - public portion of Ed25519 signing key
/// `signature` - Ed25519-produced signature
TransformedValue {
ephemeral_public_key: PublicKey,
encrypted_message: EncryptedMessage,
auth_hash: AuthHash,
transform_blocks: NonEmptyVec<TransformBlock>,
public_signing_key: PublicSigningKey,
signature: Ed25519Signature,
},
}
and I want to construct this object from a remote client
I found that it was not implement serialization
How to accomplish this ?
The text was updated successfully, but these errors were encountered:
@gkarc Sorry for the delay. I lost track of the question in my backlog.
At the time that we wrote this we didn't implement serde on any of our public types. We might change that if we were to take another look, but don't have plans to do it right now. If you'd like to add support we'd certainly consider a serde implementation PR.
When we need to serialize EncryptedValue in IronOxide we take each field and put them into a protobuf object.
I want to serialise this
Core implementation does not support Serialization
and I want to construct this object from a remote client
I found that it was not implement serialization
How to accomplish this ?
The text was updated successfully, but these errors were encountered: