@humanagencyp/hap-core 0.12.1 → 0.13.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/README.md +3 -3
- package/dist/index.d.mts +567 -123
- package/dist/index.d.ts +567 -123
- package/dist/index.js +869 -23
- package/dist/index.mjs +829 -22
- package/package.json +2 -1
- package/src/canonicalize.ts +9 -0
- package/src/commitment-modes.ts +21 -9
- package/src/errors.ts +24 -8
- package/src/gatekeeper.ts +52 -8
- package/src/index.ts +5 -1
- package/src/issuance.ts +250 -0
- package/src/mandate.ts +52 -14
- package/src/owner-signature.ts +86 -39
- package/src/profile.ts +45 -0
- package/src/proposal-content.ts +219 -0
- package/src/ticket-projection.ts +167 -0
- package/src/ticket.ts +254 -20
- package/src/types.ts +33 -5
- package/src/verifier-policy.ts +178 -0
- package/src/versions.ts +50 -19
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ Core types, cryptographic primitives, and verification logic for the [Human Agen
|
|
|
4
4
|
|
|
5
5
|
**v0.7 vocabulary** — the wire renames *attestation* → **mandate**, *execution
|
|
6
6
|
receipt* → **mandate ticket**, *context* → **scope**, and *Decision Owner* →
|
|
7
|
-
**Mandate Owner** (protocol.md → *Migration from v0.6*). This package
|
|
8
|
-
and verifies `
|
|
7
|
+
**Mandate Owner** (protocol.md → *Migration from v0.6*). This package
|
|
8
|
+
issues `version: "0.8"` and verifies `"0.8"` and `"0.7"` artifacts, each under its own rules (v0.8 is a re-grant release; see CHANGELOG 0.13.0) — there is no backward-compat
|
|
9
9
|
verify path for v0.5/v0.6; a v0.6 mandate fails verification with
|
|
10
10
|
`VERSION_UNSUPPORTED` and must be re-issued. See the rename table below.
|
|
11
11
|
|
|
@@ -123,7 +123,7 @@ Gatekeeper no longer enforces cumulative bounds locally.
|
|
|
123
123
|
## Conformance vectors
|
|
124
124
|
|
|
125
125
|
`npm test` consumes the spec's published conformance vectors directly from
|
|
126
|
-
`content/0.7/vectors/*.json` (a sibling checkout of
|
|
126
|
+
`content/0.8/vectors/*.json` and `content/0.7/vectors/*.json` (a sibling checkout of
|
|
127
127
|
[hap-protocol](https://github.com/humanagencyprotocol/hap-protocol) — see
|
|
128
128
|
`test/vectors/_spec-dir.ts`), rather than keeping a copy of their values in
|
|
129
129
|
this repo. If that sibling checkout is absent, the vector tests skip locally
|