Skip to main content

unmask_account_reference

Function unmask_account_reference 

Source
pub fn unmask_account_reference(
    account_reference: u32,
    sender_secret_key: &[u8; 32],
    compact_xpub: &[u8],
) -> (u32, u32)
Expand description

Recover (version, account_index) from a masked accountReference. Inverse of calculate_account_reference for the same (sender_secret_key, compact_xpub) — only the original sender can un-mask (the PRF key is their ECDH private key). Used on re-send to read the previous rotation version.