conformance: the identity presentation verifier enrolled (134 rules of 10 verifiers, 273 vectors); the reference verifier instruction names all five files beside verify-proof.mjs; module READMEs point to aere.network/tools
This commit is contained in:
1 parent
c9798a0013
commit
5fb38c5d0b
88 files changed
+20246
-179
No files matched your search
+54
-2
@@ -11,7 +11,7 @@ import fs from 'node:fs'; import path from 'node:path'; import { fileURLToPath,
|
||||
|
||||
const AICI = path.dirname(fileURLToPath(import.meta.url));
|
||||
export const LEVELS = ['integrity', 'authenticity', 'anchoring', 'finality'];
|
||||
/** The AIP-23 reference verifier: AERE_VERIFY_PROOF=<verify-proof.mjs> (published with aere-node), or the development repository. */
|
||||
/** The AIP-23 reference verifier: AERE_VERIFY_PROOF=<verify-proof.mjs> (published at aere.network/tools), or the development repository. */
|
||||
export const VERIFY_PROOF = process.env.AERE_VERIFY_PROOF || path.resolve(AICI, '..', '..', 'verificator-falcon', 'verify-proof.mjs');
|
||||
|
||||
/** The modules judged in-process. `env` names the variable through which the planting control substitutes a planted copy. */
|
||||
@@ -24,6 +24,7 @@ export const MODULE = {
|
||||
sidecar: { url: new URL('../verify-layer/sidecar.mjs', import.meta.url), env: 'AERE_CONF_MODUL_SIDECAR' },
|
||||
arbore: { url: new URL('../verify-layer/jurnal-arbore.mjs', import.meta.url), env: 'AERE_CONF_MODUL_ARBORE' },
|
||||
ledger: { url: new URL('../agents/agent-ledger.mjs', import.meta.url), env: 'AERE_CONF_MODUL_LEDGER' },
|
||||
identity: { url: new URL('../identity/identity.mjs', import.meta.url), env: 'AERE_CONF_MODUL_IDENTITY' },
|
||||
};
|
||||
export const caleModul = (k) => process.env[MODULE[k].env] || fileURLToPath(MODULE[k].url);
|
||||
export const incarca = (k) => import(pathToFileURL(caleModul(k)).href);
|
||||
@@ -147,6 +148,46 @@ export const VERIFICATOARE = {
|
||||
revocare: ['agents.revocation', I, 'a revocation entry carries a revocation that verifies, and says what it carries'],
|
||||
aprobari: ['agents.approvals', I, 'an approvals field, when present, is a list that is not empty'],
|
||||
decizie: ['agents.decision', I, 'every decision written is the decision the policy gives when replayed'] } },
|
||||
// a presentation of a post-quantum credential (hybrid Ed25519 + ML-DSA-65), judged with what the verifier brings: its audience, its
|
||||
// nonce, its clock, the issuers it trusts, the status lists and the revocations it was handed
|
||||
identity: { artifacts: ['identity-presentation'], sursa: 'identity', reguli: {
|
||||
form: ['identity.form', I, 'the presentation, its credential and its binding are well formed'],
|
||||
'issuer-id': ['identity.issuer-id', AU, 'the issuer id is the id derived from the issuer keys in the credential'],
|
||||
'holder-id': ['identity.holder-id', AU, 'the holder id is the id derived from the holder keys in the credential'],
|
||||
'credential-signature': ['identity.credential-signature', AU, 'the credential is signed by its issuer, Ed25519 and ML-DSA-65, both'],
|
||||
'issuer-trusted': ['identity.issuer-trusted', AU, 'the issuer is one of the issuers the verifier trusts'],
|
||||
'credential-window': ['identity.credential-window', I, 'the credential is valid on the verifier\'s clock'],
|
||||
'status-list': ['identity.status-list', I, 'a current status list of the issuer, handed to the verifier, can be read at the credential\'s index'],
|
||||
'credential-revoked': ['identity.credential-revoked', I, 'no current status list of the issuer revokes the credential'],
|
||||
'sd-distinct': ['identity.sd-distinct', I, 'the digests the credential signs are distinct'],
|
||||
'disclosure-readable': ['identity.disclosure-readable', I, 'every disclosure shown is in its one canonical form (salt of 16 bytes or more, an allowed name)'],
|
||||
'disclosure-signed': ['identity.disclosure-signed', I, 'the digest of every disclosure shown is one the issuer signed'],
|
||||
'disclosure-once': ['identity.disclosure-once', I, 'no claim is disclosed twice'],
|
||||
'disclosure-plain': ['identity.disclosure-plain', I, 'no disclosure covers a claim the credential has in the clear'],
|
||||
'claim-name': ['identity.claim-name', I, 'every plain claim has an allowed name'],
|
||||
'binding-credential': ['identity.binding-credential', I, 'the presenter signed for this credential'],
|
||||
'binding-disclosures': ['identity.binding-disclosures', I, 'the presenter signed for exactly the disclosures shown'],
|
||||
'binding-delegations': ['identity.binding-delegations', I, 'the presenter signed for exactly the delegation chain shown'],
|
||||
presenter: ['identity.presenter', AU, 'the presenter is the holder, or the last delegate of the chain'],
|
||||
'presentation-signature': ['identity.presentation-signature', AU, 'the presentation is signed by the presenter, Ed25519 and ML-DSA-65, both'],
|
||||
audience: ['identity.audience', I, 'the presentation was made for this verifier'],
|
||||
nonce: ['identity.nonce', I, 'the presentation carries the nonce this verifier gave'],
|
||||
freshness: ['identity.freshness', I, 'the presentation was made within the allowed age of the verifier\'s clock'],
|
||||
'chain-length': ['identity.chain-length', I, 'the delegation chain has at most eight links'],
|
||||
'delegation-form': ['identity.delegation-form', I, 'every link of the chain is a delegation'],
|
||||
'delegation-ids': ['identity.delegation-ids', AU, 'in every link, the giver and the delegate carry the ids derived from their keys'],
|
||||
'delegation-from': ['identity.delegation-from', AU, 'the first link is given by the holder, every other by the delegate of the link before'],
|
||||
'delegation-parent': ['identity.delegation-parent', I, 'every link names the hash of the link before it'],
|
||||
'delegation-signature': ['identity.delegation-signature', AU, 'every link is signed by who gave it, Ed25519 and ML-DSA-65, both'],
|
||||
'delegation-scope': ['identity.delegation-scope', I, 'the scope of every link can be read and is in its normal form'],
|
||||
'delegation-window': ['identity.delegation-window', I, 'every link is valid on the verifier\'s clock and when the presentation was made'],
|
||||
'delegation-depth': ['identity.delegation-depth', I, 'every link allows as many links as come after it'],
|
||||
'delegation-narrows': ['identity.delegation-narrows', I, 'a link only narrows the one before: scope, window and depth'],
|
||||
'delegation-credential': ['identity.delegation-credential', I, 'the scope of every link covers this credential'],
|
||||
'delegation-claims': ['identity.delegation-claims', I, 'the scope of every link covers the claims disclosed'],
|
||||
'delegation-audience': ['identity.delegation-audience', I, 'the scope of every link covers the audience'],
|
||||
'delegation-revoked': ['identity.delegation-revoked', I, 'no revocation handed to the verifier, signed by the giver of a link or by the holder, has taken effect'],
|
||||
unreadable: ['identity.unreadable', I, 'every field a check reads can be read (a time is an RFC 3339 UTC time, a hash input is JSON)'] } },
|
||||
};
|
||||
/**
|
||||
* The FAILED sites of verify-proof's `finality` level, classified. `fragment` must appear on exactly one such source line; `re`
|
||||
@@ -161,9 +202,20 @@ export const FINALITY_SITES = [
|
||||
{ fragment: 'the Merkle proof for block', re: /^the Merkle proof for block/, level: 'anchoring' },
|
||||
{ fragment: 'not notarized:', re: /^not notarized:/, level: 'anchoring', reachable: true },
|
||||
];
|
||||
/**
|
||||
* What the identity verifier leaves UNJUDGED, by the cause it names -> [level, cause of the suite], or null when nothing the artifact
|
||||
* claims is left unmeasured. A check that needs something the verifier did not bring (its audience, its nonce, the issuers it trusts)
|
||||
* or a status list the credential names and nobody read leaves the verdict PARTIAL. Not PARTIAL: a credential that names no status
|
||||
* list; a revocation that cannot be attributed to the giver of a link or to the holder (ignored); a delegation chain judged with no
|
||||
* revocation handed (a verifier applies the revocations it is given; VALID does not say that none exists).
|
||||
*/
|
||||
export const NEJUDECATE_IDENTITY = { 'issuer-trust': ['authenticity', 'not-supplied'], audience: ['integrity', 'not-supplied'], nonce: ['integrity', 'not-supplied'], 'status-unread': ['integrity', 'claim-not-checked'],
|
||||
'status-none': null, 'revocation-ignored': null, 'revocations-none': null };
|
||||
/** Verifiers published beside these that the suite does NOT enrol yet, with the pattern that counts their refusal sites. */
|
||||
export const NEINROLATE = [
|
||||
{ name: 'identity', files: [new URL('../identity/identity.mjs', import.meta.url)], re: /\bok\(['`]/g, why: 'its checks are labelled rows, not rule ids (counted: the check rows of its presentation verifier; its SD-JWT, Travel Rule and compliance verifiers are not counted)' },
|
||||
{ name: 'identity: SD-JWT (RFC 9901)', files: [new URL('../identity/sdjwt.mjs', import.meta.url)], re: /\brefuz\(/g, why: 'its refusals carry texts, not rule ids (counted: the calls of its refusal helper); it is checked by its own probe, on the RFC 9901 vectors' },
|
||||
{ name: 'identity: Travel Rule', files: [new URL('../identity/travel-rule.mjs', import.meta.url)], re: /motive\.push\(/g, why: 'its refusals are reasons in a list, not rule ids (counted: the places that add one); it takes the presentation verdict from the enrolled verifier' },
|
||||
{ name: 'identity: compliance', files: [new URL('../identity/conformitate.mjs', import.meta.url)], re: /motive\.push\(/g, why: 'its refusals are reasons in a list, not rule ids (counted: the places that add one); it takes the presentation verdict from the enrolled verifier' },
|
||||
];
|
||||
|
||||
/** public rule id -> { verifier, source, level, says } for every mapped rule */
|
||||
|
||||
Reference in new issue
Block a user