forked from spruceid/siwe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update grammar for chain ID (spruceid#21)
* make chainId required * update abnf, regex and tests to move `Chain ID` between `Version` and `Nonce` * fix address comparison in sig verification
- Loading branch information
1 parent
68f7bdf
commit 482aa32
Showing
6 changed files
with
46 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"example message": { | ||
"domain": "login.xyz", | ||
"address": "0xe2f03cb7a54ddd886da9b0d227bfcb2d61429699", | ||
"address": "0xb8a316ea8a9e48ebd25b73c71bc0f22f5c337d1f", | ||
"statement": "Sign-In With Ethereum Example Statement", | ||
"uri": "https://login.xyz", | ||
"version": "1", | ||
"nonce": "k13wuejc", | ||
"issuedAt": "2021-11-12T17:37:48.462Z", | ||
"chainId": "1", | ||
"signature": "0x795110331a07a4d475419fbdb346feb4c0579dcc8228989964474e07d98dbf425f38776cd6ca037f58288acc7b15e720c9cecac988479177fb70592f2391aaff1b" | ||
"nonce": "uolthxpe", | ||
"issuedAt": "2021-11-25T02:36:37.013Z", | ||
"signature": "0x6eabbdf0861ca83b6cf98381dcbc3db16dffce9a0449dc8b359718d13b0093c3285b6dea7e84ad1aa4871b63899319a988ddf39df3080bcdc60f68dd0942e8221c" | ||
} | ||
} |