Skip to content

feat: add nexus_sdk extensions support#591

Closed
brech1 wants to merge 2 commits intonexus-xyz:mainfrom
brech1:feat/sdk-extensions-support
Closed

feat: add nexus_sdk extensions support#591
brech1 wants to merge 2 commits intonexus-xyz:mainfrom
brech1:feat/sdk-extensions-support

Conversation

@brech1
Copy link

@brech1 brech1 commented Jan 30, 2026

Is this resolving a feature or a bug?

Feature

Are there existing issue(s) that this PR would close?

If this PR is not minimal (it could be split into multiple PRs), please explain why the issues are best resolved together.

This PR is minimal.

Describe your changes.

Add extensions support to nexus-sdk. Users can now use extensions without bypassing the SDK:

use nexus_sdk::stwo::seq::{Stwo, ExtensionComponent};

let prover = Stwo::new(&elf)?.with_extensions(ExtensionComponent::keccak_extensions());
let (view, proof) = prover.prove_with_input(&input, &())?;
proof.verify_with_extensions(ExtensionComponent::keccak_extensions(), &view)?;

Changes:

  • sdk: Add Stwo::with_extensions(), Proof::verify_with_extensions(), re-export ExtensionComponent
  • prover/core: Expose prove_with_extensions(), verify_with_extensions(), ExtensionComponent

@github-actions
Copy link

github-actions bot commented Jan 30, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@brech1
Copy link
Author

brech1 commented Jan 30, 2026

I have read the CLA Document and I hereby sign the CLA

@slumber
Copy link
Contributor

slumber commented Feb 19, 2026

Thank you for the PR.

Keccak precompile is experimental and should not be exposed via SDK yet.

@slumber slumber closed this Feb 19, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2026
@brech1 brech1 deleted the feat/sdk-extensions-support branch February 19, 2026 18:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support extensions in nexus-sdk

2 participants