Skip to content

chore(scripts): drop the illustrative Ethereum ANS-104 script - #679

Open
kevincodex1 wants to merge 1 commit into
mainfrom
chore/drop-eth-ans104-script
Open

kevincodex1 wants to merge 1 commit into
mainfrom
chore/drop-eth-ans104-script

Conversation

@kevincodex1

@kevincodex1 kevincodex1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

What

Removes scripts/ans104_golden.mjs. It signed an illustrative Ethereum (sigtype 3) DataItem with arbundles' EthereumSigner, which uses elliptic's ECDSA. elliptic has an advisory with no patched version: GHSA-848j-6mx2-7j84 / CVE-2025-14505, Dependabot alert #23, which flags it as "vulnerability found in your code".

  • Nothing pinned that script's output. The node's interop test (ans104::tests::dataitem_matches_arbundles_golden_vector) uses the Ed25519 vector from scripts/ans104_golden_ed25519.mjs, which is unchanged and doesn't use elliptic.
  • scripts/ans104_golden_output.txt and two comments in crates/twigpine-node/src/ans104.rs stop referring to the removed script. Comments only, no code change. SIGNATURE_TYPE_ETHEREUM stays.

elliptic stays in scripts/package-lock.json as a transitive dependency of arbundles, so after merging, alert #23 is dismissed as "Vulnerable code is not actually used". scripts/ is dev-only: it isn't installed in CI and isn't in any release artifact.

Checks

  • cargo test -p twigpine-node --lib ans104: 23/23, including the golden-vector test.
  • rustfmt --check on ans104.rs: clean. No references to the removed script remain.
  • Local CodeRabbit: 0 findings.

Summary by CodeRabbit

  • Documentation
    • Clarified the Ed25519 interoperability fixture description and updated verification notes.
    • Removed outdated references to the legacy Ethereum signing script.
  • Chores
    • Removed the legacy script used to generate ANS-104 golden-vector output.

scripts/ans104_golden.mjs signed an illustrative Ethereum (sigtype 3)
DataItem with arbundles' EthereumSigner. Nothing pinned its output (the
node's interop test uses the Ed25519 vector from
ans104_golden_ed25519.mjs), and it was this repo's only caller of
elliptic's ECDSA, which has an unpatched advisory
(GHSA-848j-6mx2-7j84 / CVE-2025-14505, Dependabot alert #23).

elliptic stays in scripts/package-lock.json as a transitive dependency of
arbundles; the remaining Ed25519 script does not use it. Comment and
note updates only otherwise.
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request removes the legacy Ethereum ANS-104 golden script and updates the related documentation to identify the Ed25519 interop pin and describe the removed script’s status.

Changes: ANS-104 golden-vector reference cleanup

Layer / File(s) Summary
Update golden-vector references
crates/twigpine-node/src/ans104.rs, scripts/ans104_golden.mjs, scripts/ans104_golden_output.txt
The documentation identifies the golden output as the Ed25519 interop pin. The Ethereum script is removed. The notes state that its output was not pinned and that it was the only caller of elliptic’s ECDSA.

Estimated code review effort: 2 (Simple) | ~8 minutes

Possibly related PRs

  • Twigpine/node#524: Adds the ANS-104 codec and golden-vector scripts that this pull request updates.

Suggested reviewers: beardthelion

Merge Risk: Minimal · up to ca3ce

This change removes an unused illustrative script and updates documentation to match. It does not change runtime behavior, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: removing the illustrative Ethereum ANS-104 script (scripts/ans104_golden.mjs). The raw summary confirms that file was deleted, and the objectives say the same. The tit…
Description check Passed The description covers the required sections. It explains what changed and why (the elliptic advisory and Dependabot alert #23). It names the affected crate and files, gives verification commands and …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: removing the illustrative Ethereum ANS-104 script (scripts/ans104_golden.mjs). The raw summary confirms that file was deleted, and the objectives say the same. The title is specific and matches the changeset.

Full details: Description check

Explanation

The description covers the required sections. It explains what changed and why (the elliptic advisory and Dependabot alert #23). It names the affected crate and files, gives verification commands and results, and states the protocol impact is comment-only. The 'Kind of change' checklist, 'Closes #' issue link, and 'Before you request review' checklist are not filled in. The template's protocol-impact block was also left out, though the change does not touch the protocol. These gaps are minor.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: b0ac3a41-0b0c-4cc5-b498-bff3ee735793
Commits

Reviewing files that changed from the base of the PR and between 8473b29 and ca3ce16.

Files selected for processing: 3

  • crates/twigpine-node/src/ans104.rs
  • scripts/ans104_golden.mjs
  • scripts/ans104_golden_output.txt
Files with no reviewable changes: 1

  • scripts/ans104_golden.mjs

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

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