rootcard 0.0.0 → 0.1.0

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/CHANGELOG.md CHANGED
@@ -4,4 +4,12 @@ All notable changes to this package are recorded here.
4
4
 
5
5
  ## Unreleased
6
6
 
7
- - Repository skeleton (phase 0).
7
+ ## 0.1.0 - 2026-11-04
8
+
9
+ - First release of the JavaScript implementation of format version 1, byte for byte equal to the Rust crate on every
10
+ shared vector. Zero dependencies; WebCrypto for Ed25519, X25519, SHA-256, HKDF and AES-GCM; its own BLAKE2b and
11
+ Argon2id (RFC 9106).
12
+ - `rootcard`: verification (JSON, encodings, keys, recovery keys, identities, logs, vault and profile checks,
13
+ messages, proofs, account files, cards). `rootcard/vault`: password locks, vault encryption, registration, password
14
+ change, new instances and rotation. `rootcard/testing`: the deterministic stream of the vectors.
15
+ - `keytool.html`: the standalone key tool page, works from `file://`.
package/README.md CHANGED
@@ -1,6 +1,24 @@
1
1
  # rootcard (npm)
2
2
 
3
- Core library of [rootcard](https://github.com/Hexagon/rootcard) in plain ES modules: a portable, self-certifying identity for
4
- online logins. Zero dependencies, no build step, runs in browsers and Node (WebCrypto).
3
+ [rootcard](https://github.com/Hexagon/rootcard) in plain ES modules: a portable, self-certifying identity for online
4
+ logins. Zero dependencies, no build step, WebCrypto only; runs in browsers and Node 20 or later. It produces and checks
5
+ exactly the bytes of the Rust crate `rootcard`; both are tested against the shared vectors of the specification.
5
6
 
6
- Status: skeleton. See the repository's `docs/PLAN.md`.
7
+ ```js
8
+ import { verifyLog, verifyProof } from "rootcard"; // verification: hosts, relying parties, clients
9
+ import { register, unlockVault, changePassword } from "rootcard/vault"; // passwords, Argon2id, vault encryption
10
+
11
+ const state = await verifyLog(events, { realms: ["global"], now: Math.floor(Date.now() / 1000) });
12
+ ```
13
+
14
+ - `rootcard` is the verification core: canonical JSON, keys, recovery keys, identities and handles, logs
15
+ (`verifyLog`, `extendLog`, `compareLogs`), vault and profile checks, login and fetch messages, proofs, account files
16
+ and recovery cards.
17
+ - `rootcard/vault` adds password locks (Argon2id implemented in this package, the only primitive not taken from
18
+ WebCrypto), vault encryption and the high-level flows: registration, password change, new instances and rotation.
19
+ A server bundle that does not import it never loads it.
20
+ - `keytool.html` is the standalone key tool page: open it from your own disk (`file://`). It talks only to the hosts you
21
+ enter. It is generated from these modules by `npm run build`.
22
+
23
+ Functions that need randomness take `random(n)`; pass `systemRandom` (WebCrypto `getRandomValues`). Errors are
24
+ `RootcardError` with the stable `code` of SPEC §20.