pub fn blind_pseudonymized_datum(
    store_context: &StoreContext,
    bpk: &BlindingPublicKey,
    ek: &StoreEncryptionKey,
    datum: &PseudonymizedData,
    randomness: &mut Randomness
) -> Result<BlindedPseudonymizedData, Error>
Expand description

Blind a pseudonymous datum as a first step in pseudonym conversion.

Inputs:

  • store_context: The data store’s long term private state including the pseudonym hardening keys
  • bpk: Receiver’s blinding public key
  • ek: Receiver’s public encryption key
  • datum: Pseudonymized data
  • randomness: Random bytes

Output: Blinded pseudonymized data such that the datum’s handle is blinded for CoPRF conversion and the datum’s value is level-1 encrypted.