downloadContractKeys

suspend fun downloadContractKeys(contractName: String, circuitNames: List<String>, baseUrl: String, onProgress: (Float) -> Unit = {}): Int

Download contract proving keys from a remote URL.

Downloads {circuit}.prover, .verifier, .bzkir for each circuit. The base URL should point to a directory containing these files.

Parameters

contractName

Short name for local storage (e.g., "bboard")

circuitNames

Circuit names to download (e.g., "post", "takeDown")

baseUrl

URL prefix where keys are hosted (e.g., "https://example.com/keys/bboard")

onProgress

Callback with progress 0.0 to 1.0