Repository navigation
fix(siwe): assume https when the message omits scheme - #5621
Merged
Merged
Conversation
EIP-4361: if `scheme` is not specified, HTTPS is assumed by default. Co-authored-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
🦋 Changeset detectedLatest commit: 24960f5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@HereForTheTechNFT is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Checked this against Two things outside the diff:
|
Contributor
Author
|
Thanks for checking it against the parser output, @erkancamli.
🤖 Generated with Claude Code |
Merged
jxom
added a commit
to wevm/ox
that referenced
this pull request
Nov 20, 2026
#713) * fix(Siwe): assume https in validateMessage when the message omits scheme Same fix as wevm/viem#5621 for validateSiweMessage. Co-authored-by: Claude <[email protected]> Co-authored-by: jxom <[email protected]> * test(Siwe): cover the default https scheme in validateMessage Co-authored-by: Claude <[email protected]> Co-authored-by: jxom <[email protected]> * chore: add changeset for the Siwe default scheme fix Co-authored-by: Claude <[email protected]> Co-authored-by: jxom <[email protected]> --------- Co-authored-by: forthetech.eth <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: jxom <[email protected]>
jxom
pushed a commit
to wevm/ox
that referenced
this pull request
Nov 20, 2026
…eme (#712) * fix(Siwe): assume https in validateMessage when the message omits scheme Same fix as wevm/viem#5621 for validateSiweMessage. Co-authored-by: Claude <[email protected]> * test(Siwe): cover the default https scheme in validateMessage Co-authored-by: Claude <[email protected]> * chore: add changeset for the Siwe default scheme fix Co-authored-by: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EIP-4361 says: "If
schemeis not specified, HTTPS is assumed by default."validateSiweMessagecomparedmessage.schemedirectly, so a message without a scheme failed validation against{ scheme: 'https' }.verifySiweMessagepassesschemethrough, so it had the same issue.The check now treats a missing scheme as
https:A message without a scheme still fails against
{ scheme: 'http' }, and nothing changes when noschemeis passed.behavior: scheme defaults to https when omittedinvalidateSiweMessage.test.ts. It fails without the fix.schemeparameter.vitest run src/utils/siwe: 93 tests pass.biome checkis clean.🤖 Generated with Claude Code
https://claude.ai/code/session_014cRzwuyJe8BGwXowsQ3kpw