Skip to main content

decrypt_amount_token

Function decrypt_amount_token 

Source
pub fn decrypt_amount_token(
    encrypted_amount: Fr,
    encrypted_token: Fr,
    shared_secret: &BigUint,
    ephemeral_key: (&BigUint, &BigUint),
) -> (Fr, Fr)
Expand description

Inverse of encrypt_amount_token (decryptAmountToken). The caller MUST verify the recomputed noteId.