go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

Implement EIP 4361

Open scanhex12 opened this issue 5 months ago • 0 comments

Implementation of https://github.com/ethereum/go-ethereum/issues/24132 Added handler for SIWE in CLEF Example of usage:

curl -X POST --data '{"id": 0, "jsonrpc": "2.0", "method": "account_approveSIWE", "params": [{ "domain": "login.xyz", "address": "0x9D85ca56217D2bb651b00f15e694EB7E713637D4", "statement": "Sign-In With Ethereum Example Statement", "uri": "https://login.xyz", "version": "1", "nonce": "bTyXgcQxn2htgkjJn", "issuedAt": "2022-01-27T17:09:38.578Z", "chainId": 1, "expirationTime": "2100-01-07T14:31:43.952Z" }, "0xdc35c7f8ba2720df052e0092556456127f00f7707eaa8e3bbff7e56774e7f2e05a093cfc9e02964c33d86e8e066e221b7d153d27e5a2e97ccd5ca7d3f2ce06cb1b"]}' http://localhost:8550 -H "Content-Type: application/json"

{"jsonrpc":"2.0","id":0,"result":true}

scanhex12 avatar Jun 15 '25 18:06 scanhex12