Skip to main content

open_scope

Function open_scope 

Source
pub fn open_scope(
    wrapped: &WrappedScope,
    opaque_id: &[u8; 16],
    fragment_secret: &[u8; 32],
    passphrase: Option<&str>,
) -> Result<ScopeMaterial, SharingError>
Expand description

Open a link’s encapsulated ScopeMaterial client-side — the recipient path.

The recipient holds only the URL: the opaque_id (path) and fragment_secret (fragment). When the link is passphrase-protected the caller must supply the passphrase; the Argon2id unwrap runs here, on the client, and the passphrase is never transmitted (SSoT: Share Links — Passphrase unwrap is client-side).