vault.crypto_vault_export

Documentation for eth_defi.vault.crypto_vault_export Python module.

Publish the private flat-key crypto-vaults bundle to Cloudflare R2.

Uses the Cloudflare R2 S3 API.

Functions

build_crypto_vault_manifest(paths, metadata)

Build the current flat-key bundle manifest from local payloads.

publish_crypto_vault_bundle(paths, metadata)

Upload crypto payloads, manifest and daily backups to private R2.

build_crypto_vault_manifest(paths, metadata)

Build the current flat-key bundle manifest from local payloads.

The manifest binds each local payload by size and SHA-256 digest and repeats the native threshold policy needed by consumers to audit admission.

Parameters
Returns

JSON-serialisable manifest document.

Return type

dict[str, Any]

publish_crypto_vault_bundle(paths, metadata)

Upload crypto payloads, manifest and daily backups to private R2.

Payload keys use flat root names prefixed with crypto- so they share the public bundle’s layout without colliding with it. The manifest is uploaded last and consumers must verify its digests before accepting the bundle.

Parameters
Returns

True when all uploads complete; exceptions propagate to the guarded post-processing phase.

Return type

bool