Skip to main content

open_share_metadata

Function open_share_metadata 

Source
pub fn open_share_metadata(
    blob: &[u8],
    opaque_id: &[u8; 16],
    fragment_secret: &[u8; 32],
) -> Result<ShareMetadata, SharingError>
Expand description

Open the sealed metadata record a viewer fetched from the link’s metadata_hash — the recipient half of publish_share, run client-side with the URL’s opaque id and fragment.

§Errors

SharingError::Crypto when the blob does not open under this URL’s fragment (a wrong fragment, a wrong opaque id, or a tampered blob, which are indistinguishable), and SharingError::Malformed when it opens but is not a record this reader understands.