Skip to content

feat(sdk): add StdinTooLarge proof request error - #3040

Merged
bergkvist merged 4 commits into
mainfrom
tobias/proto-stdin-too-large
Nov 19, 2026
Merged

bergkvist merged 4 commits into
mainfrom
tobias/proto-stdin-too-large

Conversation

@bergkvist

@bergkvist bergkvist commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add StdinTooLarge = 9 to ProofRequestError in the base and auction network proto types of the SDK.

Motivation

The prover network will fail a proof request when its stdin artifact is larger than 16 GiB. It reports this with error value 9. With this change, SDK users can decode and match on that value.

This follows #3034, which added ProgramTooLarge for the program size limit. The proto change is in succinctlabs/network#250.

Caveats

This PR is stacked on #3041. Without that fix, the lint job fails on a clippy lint from Rust 1.100 that is not related to this change.

@bergkvist
bergkvist changed the base branch from main to tobias/fix-clippy-1.100 November 17, 2026 00:51
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Test Old New Diff
k256_test_recover_pubkey_infinity 98610 98610 0.0000 %
bn_test_bn_test_g1_add_100 988638 988617 -0.0021 %
bls12_381_tests_test_inverse_fp2_100 2216948 2216948 0.0000 %
keccack_test_expected_digest_lte_100 1708407 1705738 -0.1562 %
curve25519_dalek_ng_test_add_then_multiply 3604832 3314648 -8.0499 %
p256_test_recover_pubkey_infinity 98144 98144 0.0000 %
k256_test_verify_rand_lte_100 11753293 11802239 0.4164 %
rust_crypto_rsa_test_pkcs_verify_100 29064504 29336854 0.9371 %
sha_test_sha2_v0_10_6_expected_digest_lte_100_times 1341647 1341069 -0.0431 %
sha_test_sha2_v0_10_9_expected_digest_lte_100_times 1345124 1346932 0.1344 %
curve25519_dalek_ng_test_decompressed_noncanonical 189834 189834 0.0000 %
curve25519_dalek_ng_test_zero_mul 107750 107750 0.0000 %
p256_test_recover_rand_lte_100 15969988 15909624 -0.3780 %
bn_test_bn_test_g1_msm_edge 375798 375798 0.0000 %
bls12_381_tests_test_v2_point_checks 1738384 1738384 0.0000 %
bls12_381_tests_test_sqrt_fp2_100 1928613 1619579 -16.0236 %
k256_test_field_checks 40519 40519 0.0000 %
bls12_381_tests_test_point_checks 797024 797024 0.0000 %
bn_test_bn_test_g1_add_neg 291962 291962 0.0000 %
bls12_381_tests_test_v2_field_checks 29324 29324 0.0000 %
bn_test_field_checks 31646 31646 0.0000 %
rustcrypto_bigint_test_bigint_mul_mod_special 1717435 1717435 0.0000 %
bls12_381_tests_test_field_checks 29324 29324 0.0000 %
k256_test_recover_high_hash_high_recid 1736783 1982470 14.1461 %
secp256k1_program_test_verify_v0_30_0_rand_lte_100 17101704 17081531 -0.1180 %
bn_test_bn_test_fq_partial_ord 184528 184528 0.0000 %
bn_test_bn_test_fq_inverse_100 786417 786417 0.0000 %
bn_test_bn_test_fq_sqrt_100 787373 787382 0.0011 %
bls12_381_tests_test_bls_double_100 6284517 6284517 0.0000 %
rustcrypto_bigint_test_bigint_mul_add_residue 2042576 2042576 0.0000 %
p256_test_field_checks 47543 47543 0.0000 %
bn_test_bn_test_g1_mul_zero 47803 47803 0.0000 %
k256_test_recover_rand_lte_100 4441989 4451041 0.2038 %
p256_test_verify_rand_lte_100 12071425 12092987 0.1786 %
secp256k1_program_test_recover_v0_30_0_rand_lte_100 5499652 5495281 -0.0795 %
bls12_381_tests_test_bls_add_100 10355715 10355715 0.0000 %
bls12_381_tests_test_sqrt_fp_100 807868 878241 8.7110 %
bn_test_bn_test_g1_double_100 728725 728704 -0.0029 %
bls12_381_tests_test_inverse_fp_100 1197070 1197070 0.0000 %
curve25519_dalek_test_zero_mul 71838 71838 0.0000 %
curve25519_dalek_test_decompressed_expected_value 4630008 4549819 -1.7319 %
sha_test_sha2_v0_10_8_expected_digest_lte_100_times 1343574 1340366 -0.2388 %
bn_test_bn_test_fr_inverse_100 803517 803517 0.0000 %
k256_test_schnorr_verify 5772163 5768867 -0.0571 %
p256_test_recover_high_hash_high_recid 5748359 5116265 -10.9961 %
curve25519_dalek_ng_test_zero_msm 125133 125133 0.0000 %
sha_test_sha2_v0_11_0_expected_digest_lte_100_times 1323940 1328111 0.3150 %
sha_test_sha3_expected_digest_lte_100_times 1176331 1176375 0.0037 %
curve25519_dalek_test_decompressed_noncanonical 7725 7725 0.0000 %
secp256k1_program_test_verify_rand_lte_100 17135158 17104833 -0.1770 %
k256_test_point_ops_edge_cases 40933 40933 0.0000 %
sha_test_sha2_v0_9_9_expected_digest_lte_100_times 1257522 1252041 -0.4359 %
curve25519_dalek_test_ed25519_verify 12942669 12939823 -0.0220 %
p256_test_point_checks 347502 347502 0.0000 %
curve25519_dalek_test_add_then_multiply 2748755 2506606 -8.8094 %
curve25519_dalek_test_zero_msm 83427 83427 0.0000 %
secp256k1_program_test_recover_rand_lte_100 5522588 5529599 0.1270 %

@fakedev9999 fakedev9999 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Base automatically changed from tobias/fix-clippy-1.100 to main November 18, 2026 15:25
@bergkvist
bergkvist enabled auto-merge (squash) November 19, 2026 00:58
@bergkvist
bergkvist merged commit 0cd151a into main Nov 19, 2026
32 of 35 checks passed
@bergkvist
bergkvist deleted the tobias/proto-stdin-too-large branch November 19, 2026 01:10
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.

2 participants