invoke

open operator fun invoke(stored: StoredSecurityKeys): Result<Config.SecurityConfig>(source)

Decodes a key backup previously saved via org.meshtastic.core.repository.SecurityKeyBackupStore into a Config.SecurityConfig, ready to apply to a node via the admin-config-write path.

Return

A Result containing the decoded Config.SecurityConfig, or a failure if the backup is malformed.

Parameters

stored

The stored key backup to decode.