Skip to content

Commit 304d67c

Browse files
chore: added reference to spruceid/siwe repo with parser implemented in TypeScript
1 parent c7fc6d9 commit 304d67c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/web3swift/Utils/EIP/EIP4361.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fileprivate let uriPattern = "(([^:?#]+):)?(([^?#]*))?([^?#]*)(\\?([^#]*))?(#(.*
1515

1616
/// Sign-In with Ethereum protocol and parser implementation.
1717
/// [EIP-4361](https://eips.ethereum.org/EIPS/eip-4361)
18+
/// Thanks to spruceid for SIWE implementation that was rewritten here in Swift: https://github.com/spruceid/siwe/blob/main/packages/siwe-parser/lib/regex.ts
1819
public final class EIP4361 {
1920

2021
private static let domain = "(?<domain>([^?#]*)) wants you to sign in with your Ethereum account:"

0 commit comments

Comments
 (0)