Skip to main content

Module common

Module common 

Source
Expand description

Shared helper functions for CLI commands.

These were previously duplicated across multiple command modules. Consolidated per C.2 audit finding.

Functions§

current_timestamp
Get Unix timestamp as i64 seconds.
decode_b64
Decode base64url string to bytes.
extract_genesis_from_commits
Extract genesis from stored commits.
generate_key
Generate a new keypair using Alg dispatch.
load_key_from_keystore
Load a cyphr Key from keystore by thumbprint.
parse_principal_genesis
Parse a base64url principal root string into a PrincipalGenesis.
parse_store
Parse the –store argument into a FileStore.