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 the current flat-key bundle manifest from local payloads. |
|
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.
- 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
paths (eth_defi.vault.crypto_vaults.CryptoVaultPaths) – Local bundle paths.
metadata (dict[str, Any]) – Metadata document generated by the bundle builder.
- Returns
Truewhen all uploads complete; exceptions propagate to the guarded post-processing phase.- Return type