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.
| Parameter | Type | Description |
|---|---|---|
| data_path | Path | Path to the data file. |
| signature_path | Path | Path to the detached signature file. |
| public_key_path | Path | Path to the GPG public key. |
Generated with Flude
Copyright © 2026