Skip to main content

recipient_record

Function recipient_record 

Source
pub async fn recipient_record(
    wan: &WanIdentityStore,
    own_instance_id: &str,
    dir: &Directory<'_>,
    agent: &str,
    instance: &str,
    channel: &str,
    key_fp: &str,
    now: i64,
) -> Result<WanKeyRecord, String>
Expand description

A receiver’s record, for a sender sealing files to it (server::jekt_cloud, file transfer spec §7): agent’s key on install instance, channel channel, fingerprint key_fp, as the agent’s lease named them. Only a record whose chain holds is returned or cached, and never one of a revoked install. Err says why not, to follow the agent’s name.