Skip to main content

check_offer

Function check_offer 

Source
pub fn check_offer(
    offer: &SealOffer,
    record: &WanKeyRecord,
    agent_id: &str,
) -> Result<Recipient, &'static str>
Expand description

The key offer names, if record (the agent’s entry in the key directory) proves it: the record’s chain holds, it is agent_id’s record for the offer’s install and key, and that key signed the offer. Err says why not, to follow the agent’s name.