-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheth.html
More file actions
27 lines (20 loc) · 933 Bytes
/
eth.html
File metadata and controls
27 lines (20 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!doctype html>
<meta charset="utf-8">
<title>QSAFE • MetaMask demo</title>
<link rel="icon" href="data:,">
<style>
body { font:16px/1.4 system-ui, sans-serif; max-width:720px; margin:2rem auto }
button { padding:.4rem 1rem; font-size:1rem }
#log { background:#111; color:#0f0; padding:1rem; min-height:9rem; white-space:pre-wrap }
</style>
<h1>🔐 Connect MetaMask → sign → verify</h1>
<p>This page uses <code>ethers.js</code> to talk to MetaMask, signs an
arbitrary message, then verifies the signature – all in-browser.</p>
<textarea id="msg" rows="3" style="width:100%">Hello from QuantaSeal 👋</textarea><br>
<button id="btn-connect">🦊 Connect</button>
<button id="btn-sign" disabled>✍️ Sign</button>
<button id="btn-check" disabled>✅ Verify</button>
<h3>Status</h3>
<pre id="log">$ npm run dev:eth …</pre>
<!-- loads the script below -->
<script type="module" src="eth.js"></script>