Function scrambledb::data_transformations::convert_blinded_datum
source · pub fn convert_blinded_datum(
coprf_context: &CoPRFEvaluatorContext,
bpk: &BlindingPublicKey,
ek: &StoreEncryptionKey,
conversion_target: &[u8],
datum: &BlindedPseudonymizedData,
randomness: &mut Randomness
) -> Result<BlindedPseudonymizedData, Error>
Expand description
Obliviously convert a blinded pseudonymous datum to a given target pseudonym key.
Inputs:
coprf_context
: The Converters CoPRF evaluation contextbpk
: The receiver’s blinding public keyek
: The receiver’s public encryption keyconversion_target
: Target pseudonym key identifierrandomness
: Random bytes
Output: Blinded pseudonymized datasuch that the datum’s pseudonymous handle is converted to the target pseudonym key and the datum’s value is level-2 encrypted towards the receiver.