flip_api.scripts.generate_trust_key

Generate a trust API key and its SHA-256 hash.

Pure utility, used by register_trust to mint a trust’s API key and its internal-service key at registration time. There is no standalone CLI — keys are never added by hand; register_trust is the sole writer of the registry.

Functions

generate_trust_key(→ tuple[str, str])

Generate a trust API key and its SHA-256 hash.

Module Contents

flip_api.scripts.generate_trust_key.generate_trust_key() tuple[str, str][source]

Generate a trust API key and its SHA-256 hash.

Returns:

Tuple of (plaintext_key, sha256_hex_hash).

Return type:

tuple[str, str]