Skip to main content

load_existing_only

Function load_existing_only 

Source
pub fn load_existing_only() -> Result<OperatorKey, OperatorKeyError>
Expand description

Load an existing operator key, failing with NotFound if no key file is present. Does not generate. Use this from CLI verbs that should refuse to act on an unbootstrapped operator (e.g. bundles add/update — generating a throwaway key as a side-effect of a bundles add that then fails the trust-root precondition is confusing and leaves unexpected state on disk).