ds-01 1.0.14 → 1.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.
@@ -1,19 +0,0 @@
1
- import { webcrypto } from "node:crypto";
2
-
3
- const { subtle } = webcrypto;
4
-
5
- export async function generateDeviceKeyPair() {
6
- // Generate an asymmetric key pair:
7
- // - publicKey → can be shared with the server
8
- // - privateKey → stays on this device
9
- const keyPair = await subtle.generateKey(
10
- {
11
- name: "ECDSA",
12
- namedCurve: "P-256",
13
- },
14
- false, // 🔐 Private key is NON-EXPORTABLE
15
- ["sign", "verify"],
16
- );
17
-
18
- return keyPair;
19
- }