Skip to main content

encode_config

Function encode_config 

Source
pub fn encode_config(
    config: &NotificationConfig,
) -> Result<StoredSecret, StorageError>
Expand description

Encode a configuration, which holds the HTTP signing key, for storage.

The same JSON as encode. A first pass measures it, so the zeroizing buffer never grows and frees a partial copy of the key.