Skip to main content

open_key

Function open_key 

Source
fn open_key(
    f: &CloudFile,
    wan_key: impl FnOnce() -> Result<([u8; 32], [u8; 32]), &'static str>,
) -> Result<[u8; 32], &'static str>
Expand description

A plain key decoded, or a sealed one opened with the WAN keypair wan_key gives (asked for only then).