From: Ardis Lu Many web3 projects use a frontend framework like ethers.js or web3.js to integrate with Ethereum. To demonstrate the minimum required code, this project's frontend is implemented entirely in vanilla HTML, CSS, and JavaScript with no framework.
- The only integration is with the standard Ethereum Provider JavaScript API (EIP-1193) used by all common wallets
- (e.g., MetaMask and Coinbase Wallet) to get user signatures for authorization.How does it work?
The backend is a serverless Cloudflare Worker, also written in vanilla JavaScript. The code to verify signatures on the backend uses Paul Miller's noble-crypto project.
Click here to view this project's source code on GitHub.