Skip to content

Files

Latest commit

8ca0ff8 · Jan 20, 2025

History

History
36 lines (26 loc) · 588 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 588 Bytes

Building Secure Web3 to Web2 connections

Overview

Loading
sequenceDiagram
    participant dApp
    participant Backend

    dApp->>Backend: Request challenge for Ethereum address
    Backend-->>dApp: Sends challenge (e.g., a random string)
    dApp->>dApp: Signs the challenge with private key
    dApp->>Backend: Sends signed challenge
    Backend->>Backend: Verifies signature using public key
    Backend-->>dApp: Returns JWT if verification succeeds

Setup

pnpm i

Run

Backend

pnpm run backend:dev

Dapp

pnpm run dapp:dev