Skip to content

SiweValidator does not allow optional scheme #12

@michaelnetter

Description

@michaelnetter

ERC-4361 allows an optional scheme at the beginning of a Siwe message:

    [ scheme "://" ] domain %s" wants you to sign in with your Ethereum account:" LF
    address LF
    LF
    [ statement LF ]
    ...

If my interpretation is correct, this should be a valid Siwe message (note the https:// scheme at the beginning of the message):

https://app.example.com wants you to sign in with your Ethereum account:
0x742d35Cc6C4C1Ca5d428d9eE0e9B1E1234567890

Sign in to our Web3 application.

URI: https://app.example.com/auth
Version: 1
Chain ID: 137
Nonce: tw9ZbAehXkE3uuDQ
Issued At: 2025-08-31T19:06:58.219Z
Expiration Time: 2025-08-31T21:16:58.219Zn

The validator however does not accept this message:

Image

(See also: moonstoneid/siwe-java#3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions