Skip to main content

create_provision_request

Function create_provision_request 

Source
pub async fn create_provision_request(
    config_dir: &Path,
    builder: ProvisionRequestBuilder,
) -> Result<CreatedProvisionRequest, Box<dyn Error>>
Expand description

Generate a fresh ephemeral Ed25519 keypair, persist the seed under <config_dir>/bootstrap-secrets/<bundle_id_hex>.key, and return a signed VP-framed vta_sdk::provision_integration::BootstrapRequest ready to hand to the VTA operator’s vta bootstrap provision-integration CLI.

Thin wrapper over vta_sdk::provision_integration::ProvisionRequestBuilder::sign_ephemeral that adds the CLI-common seed-persistence convention — matching the layout used by the v1 create_bootstrap_request path, so the same <config_dir> lets open_armored_bundle find the secret at open-time regardless of which request flavour produced it.