Verifies a detached GPG signature. Raises SignatureVerificationError on any failure (missing file, invalid signature, untrusted/wrong key) – never returns a boolean.

Raises: SignatureVerificationError: If verification fails for any reason.

Methods

verify_signed_file

verify_signed_file(data_path: Path, signature_path: Path, public_key_path: Path)

Verifies a detached GPG signature. Raises SignatureVerificationError on any failure (missing file, invalid signature, untrusted/wrong key) – never returns a boolean.

Raises: SignatureVerificationError: If verification fails for any reason.

ParameterTypeDescription
data_pathPathPath to the data file.
signature_pathPathPath to the detached signature file.
public_key_pathPathPath to the GPG public key.

Generated with Flude

Copyright © 2026