8000 fix: reject high-s signatures in Secp256k1.verify address path by brendanjryan · Pull Request #716 · wevm/ox · GitHub
[go: up one dir, main page]

Skip to content

fix: reject high-s signatures in Secp256k1.verify address path - #716

Merged
jxom merged 3 commits into
mainfrom
fix/tempo-envelope-low-s
Nov 23, 2026
Merged

jxom merged 3 commits into
mainfrom
fix/tempo-envelope-low-s

Conversation

@brendanjryan
@brendanjryan brendanjryan commented Nov 23, 2026 •
Copy link
Copy Markdown
Collaborator

Secp256k1.verify rejected high-s signatures when given a publicKey (noble enforces low-s there), but accepted them when given an address, because that path recovers the public key and noble's recovery accepts either s. SignatureEnvelope.verify in ox/tempo always takes the address path, so it accepted signatures Tempo rejects.

Adds the low-s check to the address path of Secp256k1.verify, with regression tests in core and in SignatureEnvelope.

@vercel
vercel Bot commented Nov 23, 2026 •
Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ox Error Error Nov 23, 2026 7:32pm UTC

Request Review

@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Nov 23, 2026 •
Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T19:31:21.788404Z 7e9ea21 New commits
ℹ️ 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.

@github-actions
github-actions Bot commented Nov 23, 2026 •
Copy link
Copy Markdown
Contributor

Published ox@0.0.0-pr-716-68e7420 under the pr-716 dist-tag, which follows this pull request until it closes.

pnpm add ox@pr-716
pnpm add ox@0.0.0-pr-716-68e7420

Moves the low-s check from SignatureEnvelope.verify into Secp256k1.verify, so
recovery-based verification matches the public key path.

Amp-Thread-ID: https://ampcode.com/threads/T-01a209d7-6991-7218-bab0-0c95ddf8c7b4
Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
@jxom jxom changed the title fix(tempo): reject high-s secp256k1 signatures in SignatureEnvelope.verify fix: reject high-s signatures in Secp256k1.verify address path Nov 23, 2026
@jxom
jxom merged commit dca97e0 into main Nov 23, 2026
14 of 15 checks passed
@jxom
jxom deleted the fix/tempo-envelope-low-s branch November 23, 2026 19:36
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026

This branch had an error being deployed

1 failed deployment
Preview — 7e9ea21b Deployed Nov 23, 2026 by vercel[bot]
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.

3 participants

0