Skip to content

Load Ethereum proof dependencies only when building a proof - #18

Merged
sidhujag merged 1 commit into
masterfrom
codex/lazy-proof-dependencies
Nov 3, 2026
Merged

sidhujag merged 1 commit into
masterfrom
codex/lazy-proof-dependencies

Conversation

@sidhujag

@sidhujag sidhujag commented Nov 3, 2026

Copy link
Copy Markdown
Member

Importing syscoinjs-lib currently initializes eth-proof and its legacy Merkle-trie/Elliptic dependencies even for ordinary wallet operations. Load the three proof-only dependencies when buildEthProof is called instead, preserving the exported API, automatic proof construction for assetAllocationMint, and existing constructor/request error handling.

Adds isolated-process regressions for imports with unavailable proof dependencies, first-use loading and constructor rejection, and the existing returned-error behavior for failed proof requests. The eager-loading regressions fail on the base revision and pass with this change.

Validation: 642 offline unit assertions passed, including the existing mint and transaction fixtures; Standard lint passed on Node 26.12.1. The full unit suite ran with the repository network fence enabled.

This changes runtime initialization only. The proof dependencies remain installed, audit findings remain visible, and bundlers may still include their code. No dependency versions, package version, or proof algorithms change.

sidhujag commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

@codex review

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T22:45:16.063945Z 217c976 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-03T22:46:37.527265Z 217c976 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 217c976f1d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag
sidhujag marked this pull request as ready for review November 3, 2026 22:44
@sidhujag
sidhujag merged commit a8037c0 into master Nov 3, 2026
2 checks passed
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