Skip to content

fix(0.x): port Siwe default https scheme in validateMessage (#712) - #713

Merged
jxom merged 3 commits into
0.xfrom
fix/0.x-siwe-default-scheme
Nov 20, 2026
Merged

jxom merged 3 commits into
0.xfrom
fix/0.x-siwe-default-scheme

Conversation

@jxom

@jxom jxom commented Nov 20, 2026

Copy link
Copy Markdown
Member

Port of #712 to 0.x, the line viem consumes. The original fix is by @HereForTheTechNFT. Their three commits are cherry-picked unchanged, so they keep authorship.

EIP-4361 says HTTPS is assumed when a message has no scheme. Siwe.parseMessage returns scheme: undefined for such a message, so Siwe.validateMessage({ message, scheme: 'https' }) returned false for it. The check now compares against message.scheme ?? 'https'. A patch changeset is included.

Test: the new validateMessage case fails on 0.x (0cd7550) and passes with the fix. All 130 tests in Siwe.test.ts pass, and tsc --noEmit and biome are clean.

HereForTheTechNFT and others added 3 commits November 20, 2026 22:50
Same fix as wevm/viem#5621 for validateSiweMessage.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: jxom <jake@tempo.xyz>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: jxom <jake@tempo.xyz>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: jxom <jake@tempo.xyz>
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
ox Ready Ready Preview Nov 20, 2026 10:59pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T22:52:43.317060Z 24d6b99 PR opened
ℹ️ 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

Copy link
Copy Markdown
Contributor

Published ox@0.0.0-pr-713-24d6b99 under the pr-713 dist-tag, which follows this pull request until it closes.

pnpm add ox@pr-713
pnpm add ox@0.0.0-pr-713-24d6b99

@jxom
jxom merged commit c7f9873 into 0.x Nov 20, 2026
14 checks passed
@jxom
jxom deleted the fix/0.x-siwe-default-scheme branch November 20, 2026 23:07
@github-actions github-actions Bot mentioned this pull request Nov 19, 2026

This branch was successfully deployed

1 active deployment
Preview — 24d6b990 Deployed Nov 20, 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.

2 participants