Verifies then loads and returns the JSON content. Never returns partially-verified data.

Raises: SignatureVerificationError: If signature verification fails.

Returns:

The loaded JSON content as a dictionary.

Methods

load_signed_json_override

load_signed_json_override(data_path: Path, signature_path: Path, public_key_path: Path) -> dict

Verifies then loads and returns the JSON content. Never returns partially-verified data.

Raises: SignatureVerificationError: If signature verification fails.

Returns:

The loaded JSON content as a dictionary.

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

Generated with Flude

Copyright © 2026