pub fn ed25519(
asset_filename: &str,
sig_filename: &str,
asset_bytes: &[u8],
sig_bytes: &[u8],
trusted_keys: &[[u8; 32]],
) -> Result<()>Expand description
Verify asset_bytes against the detached-signature sig_bytes
under any key in trusted_keys. Returns Ok iff at least one key
verifies; otherwise UpdateError::BadSignature.
sig_filename determines the format:
- anything ending in
.minisigis parsed as minisign, - everything else is treated as a raw 64-byte Ed25519 signature.
ยงErrors
UpdateError::BadSignature on any of: malformed signature file,
unsupported minisign algorithm, or no key verifying.