Skip to main content

PROFILE

Static PROFILE 

Source
pub static PROFILE: AppProfile
Expand description

The application identity every key is minted under.

A static because AppProfile::local_origin takes &'static self — the origin is cached in a OnceLock and handed out by reference, so the profile has to outlive every key built from it.

The salt is an application constant, compiled in, identical across every deployment. Changing it re-keys every fleet.

The two arguments are newtypes since zenkey 0.7, which is worth more here than it looks: they are both &'static str, they are adjacent, and transposing them would have compiled and silently re-keyed the fleet.