-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
675 lines (618 loc) · 30.7 KB
/
index.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
<!DOCTYPE html>
<html lang="en" prefix="og:http://ogp.me/ns#">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="index, follow"/>
<title>ESP-5791 - DIY Physical Backed NFTs</title>
<meta name="description" content="DIY Physical Backed Tokens (EIP-5791) using ESP32 and BLE"/>
<meta name="keywords" content="physical backed tokens, nft, pbt, blockchain, crypto"/>
<meta http-equiv="content-language" content="en"/>
<link rel="canonical" href="https://xtools-at.github.io/esp5791/"/>
<link rel="icon" href="./favicon.ico" type="image/x-icon" sizes="any"/>
<link rel="icon" type="image/png" sizes="512x512" href="./images/icon-512.png"/>
<link rel="icon" type="image/png" sizes="192x192" href="./images/icon-192.png"/>
<link rel="apple-touch-icon" href="./images/apple-touch-icon.png"/>
<meta name="theme-color" content="#00BCD4"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="format-detection" content="telephone=no" />
<meta property="og:site_name" content="ESP-5791"/>
<meta property="og:title" content="ESP-5791 - DIY Physical Backed NFTs"/>
<meta property="og:url" content="https://xtools-at.github.io/esp5791"/>
<meta property="og:image" content="https://xtools-at.github.io/esp5791/images/icon-512-maskable.png"/>
<meta property="og:description" content="DIY Physical Backed Tokens (EIP-5791) using ESP32 and BLE"/>
<meta property="og:type" content="website"/>
<meta property="og:locale" content="en"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="ESP-5791 - DIY Physical Backed NFTs"/>
<meta name="twitter:description" content="DIY Physical Backed Tokens (EIP-5791) using ESP32 and BLE"/>
<meta name="twitter:image" content="https://xtools-at.github.io/esp5791/images/icon-512-maskable.png"/>
<meta name="twitter:creator" content="@xtools_"/>
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="preconnect" href="https://cdn.ethers.io" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@materializecss/[email protected]/dist/css/materialize.min.css"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
href="./lib/style.css"
rel="stylesheet"
media="screen,projection"
/>
</head>
<body>
<div class="navbar-fixed">
<nav class="cyan" role="navigation">
<div class="nav-wrapper container">
<a href="#" class="brand-logo">
<img alt="ESP-5791" src="./images/icon-192-maskable.png" class="left" />
<span class="hide-on-small-only">ESP-5791</span>
</a>
<ul class="right hide-on-med-and-down">
<li><a href="#about">About <i class="material-icons left">memory</i></a></li>
<li><a href="#features">Features <i class="material-icons left">view_in_ar</i></a></li>
<li><a href="#contracts">Deploy Token <i class="material-icons left">dataset</i></a></li>
<li><a href="#chip">Scan <i class="material-icons left">radar</i></a></li>
<li><a href="#connect">Connect <i class="material-icons left">bluetooth_connected</i></a></li>
<li>
<a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">
Github <i class="material-icons left">code</i>
</a>
</li>
</ul>
<a class="right hide-on-large-only" title="Github" href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">
<i class="material-icons left">code</i>
</a>
<ul id="nav-mobile" class="sidenav">
<li class="center-align cyan"><span class="subheader white-text">ESP-5791</span></li>
<li><a class="sidenav-close" href="#about"><i class="material-icons left">memory</i>About ESP-5791</a></li>
<li><a class="sidenav-close" href="#features"><i class="material-icons left">view_in_ar</i>Features</a></li>
<li><a class="sidenav-close" href="#contracts"><i class="material-icons left">dataset</i>Deploy Token Contract</a></li>
<li><a class="sidenav-close" href="#chip"><i class="material-icons left">radar</i>Scan & Link Chips</a></li>
<li><a class="sidenav-close" href="#connect"><i class="material-icons left">bluetooth_connected</i>Connect Chip</a></li>
<li><div class="divider"></div></li>
<li class=""><span class="subheader pad">External Links</span></li>
<li>
<a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">
<i class="material-icons left">code</i>ESP-5791 on Github
</a>
</li>
</ul>
<a href="#" data-target="nav-mobile" class="sidenav-trigger"
><i class="material-icons">menu</i></a
>
</div>
</nav>
</div>
<div class="parallax-container">
<div class="section">
<div class="container">
<br><br>
<h1 class="center-align orange-text contrast">DIY Physical Backed NFTs</h1>
<div class="row center-align contrast">
<div class="h5 col s12">
EIP-5791 Physical Backed Tokens using ESP32 and BLE
</div>
</div>
<div class="row center-align">
<a href="#connect" class="btn-large waves-effect waves-light orange">
Connect Gadget
<i class="material-icons left">bluetooth_connected</i>
</a>
<a href="https://github.com/xtools-at/esp5791" class="btn-large waves-effect waves-dark white orange-text"
target="_blank"
rel="noopener noreferrer">
Make your own
<i class="material-icons left">code</i>
</a>
</div>
<br><br>
</div>
</div>
<div class="parallax">
<img src="./images/bg4.jpg" alt="" />
</div>
</div>
<div class="container" id="about">
<div class="section pad">
<h2 class="h4">About the <span class="hide-on-small-only"><em>ESP-5791</em> </span>project <i class="material-icons smed cyan-text left">memory</i></h2>
<p>
The concept of <em>Physical Backed Tokens</em> (PBTs) allows one to <em>bind a NFT permanently to a physical object</em>, using
a small chip that can generate cryptographic keys and sign messages. The signature obtained from a device like this can be used
to interact with a <em>smart contract</em> to transfer the linked NFT to one's wallet.
</p>
<p>
Some folks smarter than me put together the specification
for <a href="https://eips.ethereum.org/EIPS/eip-5791" target="_blank" rel="noopener noreferrer"><strong>EIP-5791</strong></a> on
how to make this work both on the smart contract- and hardware-side, in a way that it's safe to use and no one involved in the
process can cheat. We've implemented this standard using
the <a href="https://randomnerdtutorials.com/getting-started-with-esp32" target="_blank" rel="noopener noreferrer"><strong>ESP32</strong></a
> microcontroller with <em>Bluetooth Low Energy</em>, available freely and at low cost in form of various hardware development boards.
</p>
<p class="right-align center-on-small">
<a class="btn-large waves-effect waves-light orange" href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">
ESP-5791 on Github
<i class="material-icons left">code</i>
</a>
</p>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section">
<div class="container">
<div class="row center-align">
<p class="col s12 h5 contrast">
<strong class="h2 hide-on-small-only"><span class="orange-text">ESP</span>32 <i class="material-icons medium">favorite</i> EIP<span class="orange-text">-5791</span></strong>
<strong class="h4 hide-on-med-and-up"><span class="orange-text">ESP</span>32 <i class="material-icons small">favorite</i> EIP<span class="orange-text">-5791</span></strong>
</p>
</div>
</div>
</div>
<div class="parallax">
<img src="./images/bg3.jpg" alt="" />
</div>
</div>
<div class="container" id="features">
<div class="section pad">
<h2 class="h4">Batteries included <i class="material-icons smed cyan-text left">view_in_ar</i></h2>
<p>
The <em>ESP-5791 project</em> is fully free and open source (MIT licensed), complies with
the <a href="https://eips.ethereum.org/EIPS/eip-5791" target="_blank" rel="noopener noreferrer">EIP-5791 standard</a>, and includes
</p>
<ul class="browser-default">
<li>The <strong>ESP32 software</strong>, to be used and flashed with Arduino IDE, to create the hardware.</li>
<li>
Ready-to-use <strong>smart contracts</strong> with scripts for easy Token deployment and management, and
a deployed demo Token contract to test your hardware creation with right away.
</li>
<li>
An example <a href="#connect"><strong>GUI</strong></a> to showcase how to interact with the hardware <i>and</i> smart
contract to obtain the linked NFT. Working with <em>Web Bluetooth</em> and <em>MetaMask</em> (and
other <a href="https://eips.ethereum.org/EIPS/eip-1193" target="_blank" rel="noopener noreferrer">EIP-1193</a> compatible wallets).
</li>
<li>A lot of love and dedication, but also the occasional sweat- and teardrop :)</li>
</ul>
<h3 class="sr-only">Key advantages of PBTs</h3>
<ul class="row">
<li class="col s12 m6 l3">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">verified</i>
</div>
<h3 class="center-align h5">Verify product authenticity</h3>
<p>
Battle counterfeit products with cryptography, and authenticate
them with a single scan of the embedded chip.
</p>
</li>
<li class="col s12 m6 l3">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">manage_search</i>
</div>
<h3 class="center-align h5">Track product journey</h3>
<p>
Make the product journey transparent and
traceable, and prove ownership and ownership history of an item easily.
</p>
</li>
<li class="col s12 m6 l3">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">favorite</i>
</div>
<h3 class="center-align h5">Drive customer loyalty</h3>
<p>
Connect to the owners of your products. Allow
loyalty rewards like access to exclusive content or events
to be transferred with the product itself.
</p>
</li>
<li class="col s12 m6 l3">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">view_in_ar</i>
</div>
<h3 class="center-align h5">Ready for the Metaverse</h3>
<p>
Give digital ownership back to your customers. Create
digital twins of your products to be used in
the digital world, and build communities around your products.
</p>
</li>
</ul>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section">
<div class="container">
<div class="row center-align">
<h3 class="col s12 h5 contrast">
One small chip, endless applications.
</h3>
</div>
</div>
</div>
<div class="parallax">
<img src="./images/bg2.jpg" alt="" />
</div>
</div>
<div class="container" id="contracts">
<div class="section pad">
<div class="row">
<div class="col s12 m4 l4">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">dataset</i>
</div>
<h2 class="center-align h5">Deploy <i>Token Contract</i></h2>
<p>
The first step to get your PBT project going. You'll only need your wallet to deploy the smart contract directly from the browser.
</p>
<p class="secondary">
Don't have wallet yet? <a href="https://metamask.io/download" target="_blank" rel="noopener noreferrer"
>Get MetaMask</a
> for Desktop or Mobile.
</p>
</div>
<div class="col s12 m8 l8">
<ul class="collapsible" id="deployer">
<li class="active">
<div class="collapsible-header"><i class="material-icons">dataset</i>Deploy PBT Contract</div>
<div class="collapsible-body">
<p class="">
First we'll need to deploy a Physical Backed Token to the blockchain. You can use <strong>Remix IDE</strong> with the button below
to deploy your own instance of our ready-made PBT smart contract directly from the browser.
</p>
<p class="center-align"><a
class="btn-large waves-effect waves-light orange"
href="https://remix.ethereum.org/?#version=soljson-v0.8.17+commit.8df45f5f&autoCompile=true&code=Ly8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVA0KcHJhZ21hIHNvbGlkaXR5IF4wLjguMTc7DQoNCmltcG9ydCAiaHR0cHM6Ly9naXRodWIuY29tL3h0b29scy1hdC9lc3A1NzkxL2Jsb2IvbWFpbi9oYXJkaGF0L2NvbnRyYWN0cy9QQlQvRVNQNTc5MS5zb2wiOw0KDQovKioNCiAqIEBkZXYgWW91ciBwZXJzb25hbCBQQlQgY29udHJhY3QsIHJlYWR5IHRvIHVzZSB3aXRoIHRoZSBFU1AtNTc5MSBwcm9qZWN0DQogKi8NCmNvbnRyYWN0IE15UEJUIGlzIEVTUDU3OTEgew0KICAgIGNvbnN0cnVjdG9yKHN0cmluZyBtZW1vcnkgbmFtZSwgc3RyaW5nIG1lbW9yeSBzeW1ib2wsIHN0cmluZyBtZW1vcnkgYmFzZVVSSSkNCiAgICAgICAgRVNQNTc5MShuYW1lLCBzeW1ib2wsIGJhc2VVUkkpIHt9DQp9DQo="
target="_blank"
rel="noopener noreferrer"
>Deploy with Remix
<i class="material-icons left">open_in_new</i>
</a></p>
<p class="secondary">
If you prefer to use a local development environment, the <a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer"
>ESP-5791 repository</a> contains a complete <strong>Hardhat</strong> project to get you started.
</p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section">
<div class="container">
<div class="row center-align">
<h3 class="col s12 h5 contrast">
Ready for your project: chip software, smart contracts and tools.
</h3>
</div>
</div>
</div>
<div class="parallax">
<img src="./images/bg4.jpg" alt="" />
</div>
</div>
<div class="container" id="chip">
<div class="section pad">
<div class="row">
<div class="col s12 m4 l4">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">radar</i>
</div>
<h2 class="center-align h5">Scan & Link Chips</h2>
<p>
Collect your chips' addresses and link them to the NFTs in your PBT smart contract.
</p>
<p class="secondary">
Don't have an <em>ESP-5791</em> device yet? <a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer"
>Make your own</a
>, it's free and open source!
</p>
</div>
<div class="col s12 m8 l8">
<ul class="collapsible" id="seeder">
<li class="active">
<div class="collapsible-header"><i class="material-icons">radar</i>1) Scan Chip Addresses</div>
<div class="collapsible-body">
<p class="">
Bulk scan ESP-5791 devices around you and fetch their chip addresses. When prompted, select
a device you want to scan. Click again to scan another device.
</p>
<p class="secondary">
Works in <b>Chrome on Desktop</b> only. Due to limitations with Web Bluetooth, you'll have to
select each device you want to scan individually.
</p>
<p class="center-align"><button class="js-seeder-scan btn-large waves-effect waves-light orange">
Scan for devices
<i class="material-icons left">radar</i>
</button></p>
<div class="input-field center-align">
<textarea id="scan-result" class="materialize-textarea"></textarea>
<label for="scan-result">Scan results</label>
<button class="js-seeder-copy btn btn-abs btn-floating btn-small waves-effect waves-light cyan">
<i class="material-icons">copy_all</i>
</button>
</div>
<p class="secondary">
You may skip this step if you're using this tool with hardware other
than <a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">ESP-5791</a>, or
prefer to enter your addresses manually in step 4.
</p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">wallet</i>2) Connect Wallet</div>
<div class="collapsible-body">
<p class="">
Connect your wallet so you we can link your chip addresses to token ids in step 4:
</p>
<p class="center-align"><button class="js-wallet-connect js-seeder-wallet-connect btn-large waves-effect waves-light orange">
Connect Wallet
<i class="material-icons left">wallet</i>
</button></p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">edit_location</i>3) Token Contract</div>
<div class="collapsible-body">
<p class="">
Enter the contract address of your deployed PBT contract here:
</p>
<div class="input-field center-align">
<i class="material-icons prefix">edit_location</i>
<input id="input-seeder-address" type="text" class="validate" required="true" minlength="42" maxlength="42">
<label for="input-seeder-address">PBT Contract Address (0x...)</label>
<span class="helper-text" data-error="Contract address length mismatch"></span>
</div>
<p class="js-token-network secondary"></p>
<p class="center-align"><button class="js-seeder-continue btn-large waves-effect waves-light orange">
Save & Continue
<i class="material-icons left">edit_location</i>
</button></p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">dataset_linked</i>4) Link Chip Addresses</div>
<div class="collapsible-body">
<p class="">
One last step to go! Assign Token IDs to your Chip addresses in your smart contract here.
</p>
<form class="js-seeder-form">
<div class="row mb0" style="position:relative;">
<div class="col s9">
<label>Chip Address</label>
</div>
<div class="col s3">
<label>Token ID</label>
</div>
<button class="js-seeder-add btn btn-abs btn-floating btn-small waves-effect waves-light cyan right">
<i class="material-icons">add</i>
</button>
</div>
<ul class="center-align">
<li class="row mb0 hide">
<div class="input-field col s9">
<input class="validate" type="text" placeholder="0xAbC..." minlength="42" maxlength="42"/>
</div>
<div class="input-field col s3">
<input class="validate" type="number" min="0" step="1"/>
</div>
</li>
</ul>
<p class="center-align"><button type="submit" class="js-seeder-link btn-large waves-effect waves-light orange">
Link Chips
<i class="material-icons left">dataset_linked</i>
</button></p>
<div class="progress js-seeder-progress center-align hide">
<div class="indeterminate"></div>
</div>
<p class="js-seeder-success green-text"></p>
</form>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section">
<div class="container">
<div class="row center-align">
<h3 class="col s12 h5 contrast">
100% free and open source software (MIT license).
</h3>
</div>
</div>
</div>
<div class="parallax">
<img src="./images/bg3.jpg" alt="" />
</div>
</div>
<div class="container" id="connect">
<div class="section pad">
<div class="row">
<div class="col s12 m4 l4">
<div class="h2 center-align cyan-text">
<i class="medium material-icons">bluetooth_connected</i>
</div>
<h2 class="center-align h5">Claim Physical Backed Token</h2>
<p>
Connect to your gadget directly from the browser via <i>Web Bluetooth</i> and
get your signature to claim the connected NFT.
</p>
<p class="secondary">
Don't have an <em>ESP-5791</em> device yet? <a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer"
>Make your own</a
>, it's free and open source!
</p>
</div>
<div class="col s12 m8 l8">
<ul class="collapsible" id="connector">
<li class="active">
<div class="collapsible-header"><i class="material-icons">wallet</i>1) Connect Wallet</div>
<div class="collapsible-body">
<p class="">
Connect your wallet so we can send your generated signature directly to your selected PBT contract in step 4:
</p>
<p class="center-align"><button class="js-wallet-connect js-sig-wallet-connect btn-large waves-effect waves-light orange">
Connect Wallet
<i class="material-icons left">wallet</i>
</button></p>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">edit_location</i>2) Token Contract</div>
<div class="collapsible-body">
<p class="">
Enter the contract address of your PBT contract here:
</p>
<div class="input-field center-align">
<i class="material-icons prefix">edit_location</i>
<input id="input-token-address" type="text" class="validate" required="true" minlength="42" maxlength="42">
<label for="input-token-address">PBT Contract Address (0x...)</label>
<span class="helper-text" data-error="Contract address length mismatch"></span>
</div>
<p class="js-token-network secondary"></p>
<p class="center-align"><button class="js-token-continue btn-large waves-effect waves-light orange">
Save & Continue
<i class="material-icons left">edit_location</i>
</button></p>
<div class="center-align">- or -</div>
<div class="center-align">
<button class="js-token-demo btn waves-effect waves-dark white orange-text">
Use ESP-5791 demo contract*
</button>
</div>
<div class="secondary center-align">* (Demo contract is deployed to <b>Goerli testnet</b>)</div>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">verified</i>3) Get Signature</div>
<div class="collapsible-body">
<p class="">
Connect to your device via Bluetooth to get a recent signature.
</p>
<p class="center-align"><button class="js-connect btn-large waves-effect waves-light orange">
Connect Device
<i class="material-icons left">bluetooth_connected</i>
</button></p>
<p class="secondary">
Works in <b>Chrome on Desktop</b> only. You may skip this step if you're using this tool with hardware other
than <a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">ESP-5791</a>, or
prefer to enter your signature manually.
</p>
<ul class="green-text">
<li class="js-connect-chipaddress truncate"></li>
<li class="js-connect-signature truncate"></li>
<li class="js-connect-blocknumber truncate"></li>
</ul>
</div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">diamond</i>4) Claim Token</div>
<div class="collapsible-body">
<p class="">
The final step! Send your signature to the smart contract to transfer the linked PBT into your wallet.
</p>
<form class="center-align">
<div class="row">
<div class="input-field col s8">
<input placeholder="0xAbC..." id="input-signature" class="validate" type="text" required minlength="132" maxlength="132">
<label for="input-signature">Signature</label>
</div>
<div class="input-field col s4">
<input placeholder="256128" id="input-blockno" class="validate" type="number" required min="1" step="1">
<label for="input-blockno">Block No.</label>
</div>
</div>
<p class="center-align"><button type="submit" class="js-claim btn-large waves-effect waves-light orange">
Claim Token
<i class="material-icons left">diamond</i>
</button></p>
</form>
<div class="progress js-claim-progress center-align hide">
<div class="indeterminate"></div>
</div>
<p class="js-claim-success green-text"></p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section">
<div class="container">
<div class="row center-align">
<h3 class="col s12 h5 contrast">
Connect the physical world to the digital one.
</h3>
</div>
</div>
</div>
<div class="parallax">
<img src="./images/bg1.jpg" alt="" />
</div>
</div>
<footer class="page-footer cyan">
<div class="container">
<div class="row">
<div class="col l8 s12">
<h3 class="h5">About EIP-5791</h3>
<p>
The concept of <em>Physical Backed Tokens</em> (PBTs) as defined
by <a href="https://eips.ethereum.org/EIPS/eip-5791" target="_blank" rel="noopener noreferrer"><em>EIP-5791</em></a> allows
one to <em>bind a NFT permanently to a physical object</em>, using
a small chip that can generate cryptographic keys and sign messages. The
signature obtained from a device like this can be used to interact
with a <em>smart contract</em> to transfer the linked <em>NFT</em> to one's wallet.
</p>
</div>
<div class="col l4 s12">
<h3 class="h5">Connect</h3>
<ul>
<li><a href="https://github.com/xtools-at/esp5791" target="_blank" rel="noopener noreferrer">
Github
</a></li>
<li><a href="https://twitter.com/xtools_" target="_blank" rel="noopener noreferrer">
Twitter
</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2023-2024 || made by
<a
href="https://github.com/xtools-at"
target="_blank"
rel="noopener noreferrer"
>xtools</a
>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@materializecss/[email protected]/dist/js/materialize.min.js"></script>
<script>
M.AutoInit();
// collapsible
document.addEventListener('DOMContentLoaded', function() {
M.Collapsible.init(document.querySelectorAll('.collapsible'), {});
});
</script>
<script src="https://cdn.ethers.io/lib/ethers-5.7.2.umd.min.js"></script>
<script src="./lib/esp_ble.js"></script>
<script src="./lib/esp_eth.js"></script>
<script defer src="./lib/esp_controller.js"></script>
</body>
</html>