Skip to main content

restored_iroh_p2p_key

Function restored_iroh_p2p_key 

Source
pub(crate) fn restored_iroh_p2p_key(cfg: &ServerConfig) -> Result<SecretKey>
Expand description

Validate restored Iroh transport keys and return the p2p key for connector setup.

Restore data must contain both API and p2p secret keys, and both must match this guardian’s public keys in the restored consensus endpoints before the config is installed.