Skip to content

refactor: change ecc lib to a more performant one#29

Merged
Overtorment merged 1 commit intomasterfrom
refactor-ecc
Feb 2, 2026
Merged

refactor: change ecc lib to a more performant one#29
Overtorment merged 1 commit intomasterfrom
refactor-ecc

Conversation

@Overtorment
Copy link
Copy Markdown
Member

@Overtorment Overtorment commented Feb 2, 2026

Note

Medium Risk
Crypto backend swap changes low-level key/EC math behavior; subtle compatibility differences could break address derivation or UTXO detection despite test coverage.

Overview
Switches the library’s secp256k1 backend from the custom @noble/secp256k1 wrapper to tiny-secp256k1, updating all ECDH/shared-secret and key math call sites and dropping src/noble_ecc.ts (plus its create-hash/noble deps).

Adds a small in-module scalar multiply helper (_privateMultiply) and a new isOurUtxoUsingTweakbscanBspendAndOutputScriptUint8array fast-path to avoid hex conversions when checking outputs. Bumps package version to 3.0.0, updates docs wording/usage headings, and refreshes tests (including a new tweak test vector and perf-oriented checks).

Written by Cursor Bugbot for commit ae4847a. This will update automatically on new commits. Configure here.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtiny-secp256k1@​2.2.410010010083100

View full report

@Overtorment Overtorment merged commit 37addd4 into master Feb 2, 2026
4 checks passed
@Overtorment Overtorment deleted the refactor-ecc branch February 2, 2026 15:24
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