@githolon/testing 0.8.0 → 0.9.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/package.json +1 -1
- package/vendor/engine/engine.mjs +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@githolon/testing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "@githolon/testing — law TDD for Nomos domains: boot the REAL engine plane in-process (the exact machinery every cloud DO, heavy container and web client runs), dispatch directives, assert rows, assert TYPED REFUSALS, fork for what-ifs — fully offline inside vitest.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/vendor/engine/engine.mjs
CHANGED
|
@@ -1425,6 +1425,12 @@ export const cryptoKeygen = (eng) => JSON.parse(call(eng.ex, "crypto_keygen", {}
|
|
|
1425
1425
|
// on the author call). Returns { ok, secret, public } (both base64). `author_sign` is the lower-level
|
|
1426
1426
|
// standalone signer; the author DOOR signs internally from the injected secret, so callers use `author`.
|
|
1427
1427
|
export const authorKeygen = (eng) => JSON.parse(call(eng.ex, "author_keygen", {}, eng.STDERR));
|
|
1428
|
+
// THE CROSS-CUSTODY ATTESTATION SIGNER (home_holons §3/§5) — the asserter's client produces a SIGNED QUOTE
|
|
1429
|
+
// over the edge it is sharing (`attestation_sign`; the bytes are derived IN-wasm — the `author_sign` parity
|
|
1430
|
+
// contract). The device `secret` (base64) is injected for THIS call only. Returns { ok, signature, publicKey }
|
|
1431
|
+
// (base64) — the parts a `recordShare` payload carries; the subject's home gate verifies them (§3 gate-arm).
|
|
1432
|
+
export const attestationSign = (eng, { secret, asserterWorkspace, object, relation, subject, attestedAt }) =>
|
|
1433
|
+
JSON.parse(call(eng.ex, "attestation_sign", { secret, asserterWorkspace, object, relation, subject, attestedAt }, eng.STDERR));
|
|
1428
1434
|
export const cryptoWrapKey = (eng, { recipientPub, scopeKey }) => JSON.parse(call(eng.ex, "crypto_wrap_key", { recipientPub, scopeKey }, eng.STDERR));
|
|
1429
1435
|
export const cryptoUnwrapKey = (eng, { secret, hpkeEpk, ct }) => JSON.parse(call(eng.ex, "crypto_unwrap_key", { secret, hpkeEpk, ct }, eng.STDERR)).scopeKey;
|
|
1430
1436
|
// THE READ-POSTURE PROBE (slice 5.1): the githolon's own verdict on whether the
|