Skip to content

fix(sdk): use reserved mode for private proving - #2962

Open
kriss39 wants to merge 4 commits into
succinctlabs:mainfrom
kriss39:fix/private-proving-reserved-mode
Open

kriss39 wants to merge 4 commits into
succinctlabs:mainfrom
kriss39:fix/private-proving-reserved-mode

Conversation

@kriss39

@kriss39 kriss39 commented Sep 10, 2026

Copy link
Copy Markdown

Motivation

ProverClient::builder().network().private() points the SDK at the TEE RPC URL, but it still left the network mode at the default value. With the default mainnet mode, proof requests use the auction path by default, and the private proving path rejects that because TEE proving only accepts reserved fulfillment.

Solution

Set NetworkMode::Reserved when .private() is selected, in both the async and blocking network builders. Added small regression tests for both builders so the TEE RPC URL and network mode stay in sync.

Checks

  • cargo fmt --all -- --check
  • git diff --check
  • cargo test -p sp1-sdk test_private_sets_reserved_mode could not complete locally because protoc is not available on PATH. The build stopped in sp1-prover-types before reaching these tests.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant