Skip to main content

create_bootstrap_request

Function create_bootstrap_request 

Source
pub fn create_bootstrap_request(
    config_dir: &Path,
    label: Option<String>,
) -> Result<CreatedRequest, Box<dyn Error>>
Expand description

Generate a fresh Ed25519 keypair + nonce, persist the seed (not the derived X25519 secret) under config_dir, and return a BootstrapRequest ready to hand to the producer.

Persisting the Ed25519 seed (rather than the X25519 secret) means the same stored material can later be reused as a signing identity without regenerating.