ninja-syndicate / eip712-auth

Go server that authenticates via EIP712

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EIP712 Auth

EIP-712: Ethereum typed structured data hashing and signing. Link: EIP712

What are the project's objectives?

  • To implement a go server that authenticates a user via Metamask

Programming Languages

Golang

Domain

  • Blockchain development
  • Cryptography

How to test?

  • Clone the repo & cd into it
  • Hit go run main.go. Your server starts running at localhost:8080
  • Navigate to http://localhost:8080/static/index.html
  • If metamask in not loaded, it will prompt the metamask extension as soon as the page loads
  • Click on getNonce. This populates the nonce sent by the server
  • Click on sign. This will prompt metamask popup to sign.
  • Click on verifySignature. This will prompt an alert depending on the API response.

About

Go server that authenticates via EIP712


Languages

Language:Go 62.1%Language:JavaScript 19.3%Language:HTML 18.5%