pub fn export(
input: &BackupInput,
passphrase: &[u8],
exporter: &dyn Signer,
) -> Result<Vec<u8>, BackupError>Expand description
Assemble a backup artifact in memory, drawing a fresh random wrap salt, at the production
WRAP_PARAMS cost.
The whole artifact is returned as one buffer, so this suits a caller that needs the bytes
themselves (a peer delta it content-addresses). Exporting a library goes through
export_to, which streams.