Skip to main content

record_key

Function record_key 

Source
pub fn record_key(
    epoch_key: &Key32,
    user_id: &str,
    typ: &str,
    record_id: &str,
    epoch: u32,
    id: &str,
) -> Result<Key32>
Expand description

Per-record key: HKDF-SHA256(epoch key, salt = user id, info = weirdnet-sync/v1/record/<type>/e<n>/k<rotation id>/<record id>).