@huitl/sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,17 +22,19 @@ For questions, partnerships, or enterprise inquiries: [seva@huitlprotocol.com](m
|
|
|
22
22
|
|
|
23
23
|
## Try It Now
|
|
24
24
|
|
|
25
|
-
No chips, no hardware, no setup
|
|
25
|
+
No chips, no hardware, no setup:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
|
|
28
|
+
npm install -g @huitl/sdk
|
|
29
|
+
|
|
30
|
+
huitl verify "https://huitlprotocol.com/tap?picc_data=2C309D265CFFD369A4B62C6B9F40B669&cmac=6A6595D519DF58BF" --key 00000000000000000000000000000000
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
```json
|
|
32
34
|
{ "valid": true, "uid": "04112233445566", "readCounter": 42 }
|
|
33
35
|
```
|
|
34
36
|
|
|
35
|
-
That's a real cryptographic verification — the same math that runs on every NFC tap. The URL contains an encrypted chip identity and a one-time signature. The SDK decrypts, derives a session key, and validates the CMAC.
|
|
37
|
+
That's a real cryptographic verification — the same math that runs on every NFC tap. The URL contains an encrypted chip identity and a one-time signature. The SDK decrypts, derives a session key, and validates the CMAC.
|
|
36
38
|
|
|
37
39
|
## Installation
|
|
38
40
|
|
package/package.json
CHANGED