-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (58 loc) · 2.09 KB
/
Copy pathindex.html
File metadata and controls
68 lines (58 loc) · 2.09 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!doctype html>
<!--
Copyright 2026 Circle Internet Group, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-License-Identifier: Apache-2.0
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UCW Email Wallet</title>
</head>
<body>
<header>
<h1>UCW Email Wallet</h1>
</header>
<main>
<p>
Create a user-controlled wallet with email OTP. After verification, the
server returns a challenge; the browser runs
<code>sdk.execute</code>; then the app lists the wallet address and
balances. Uses
<code>@circle-fin/user-controlled-wallets</code> and
<code>@circle-fin/w3s-pw-web-sdk</code>.
</p>
<label>
Email
<input
id="email"
type="email"
placeholder="you@example.com"
autocomplete="email"
/>
</label>
<button id="sendOtp" type="button">Send OTP</button>
<button id="verifyOtp" type="button" disabled>Verify OTP</button>
<p>
First verify: initialize challenge → wallet. Later logins: already
initialized — list wallets only (no challenge).
</p>
<div class="wallets" id="walletStatus" aria-live="polite" hidden>
<p>Wallets:</p>
<ul></ul>
</div>
<pre id="log">Enter an email, send OTP, then verify (challenge → wallet on first login).</pre>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>