Skip to main content

recover_sent_private_document_entry

Function recover_sent_private_document_entry 

Source
pub fn recover_sent_private_document_entry(
    entry: &[u8],
    target: &PrivateDocumentTarget<'_>,
    outgoing_viewing_key: &[u8; 32],
) -> Result<Option<OpenedPrivateDocumentEntry>, PrivateDocumentEnvelopeError>
Expand description

Recovers entry of the private document type target that the holder of outgoing_viewing_key built, as after a restore from seed: Ok(None) when it built another sender’s entry. An entry whose sender recovery opens but whose body does not is refused.