Skip to main content

recipient

Function recipient 

Source
async fn recipient(
    state: &AppState,
    base: &str,
    target: &str,
    channel: &str,
    offer: &SealOffer,
) -> Result<Recipient, String>
Expand description

The key to seal target’s files to, from its lease’s offer, checked against the agent’s record in the account’s key directory. Err says why not, after the target’s name: a holder that offers a key gets sealed keys or nothing, never plain ones.