identity: the Travel Rule and compliance-policy verifiers name their rules; a missing originator id or nonce is now a refusal in acceptBeneficiary; conformance: Travel Rule and compliance presentations enrolled (239 rules, 15 verifiers, 21 kinds, 619 vectors), nothing of identity left out
This commit is contained in:
1 parent
e1bb4e25d8
commit
ea695dcf32
81 files changed
+17246
-127
No files matched your search
+51
-5
@@ -30,6 +30,10 @@ export const MODULE = {
|
||||
// sdjwt.mjs is reached only by the sdjwt-presentation artifact, so no sdjwt-vc vector expects a rule of sdjwt (it may exercise them)
|
||||
sdjwt: { url: new URL('../identity/sdjwt.mjs', import.meta.url), env: 'AERE_CONF_MODUL_SDJWT' },
|
||||
sdjwtvc: { url: new URL('../identity/sdjwt-vc.mjs', import.meta.url), env: 'AERE_CONF_MODUL_SDJWTVC' },
|
||||
// 2026-10-18 (B16): the two verifiers of the identity component that sit on top of the presentation verifier. Both import identity.mjs
|
||||
// from its real file: a planted copy of identity.mjs is reached only by the identity-presentation artifact
|
||||
travelrule: { url: new URL('../identity/travel-rule.mjs', import.meta.url), env: 'AERE_CONF_MODUL_TRAVELRULE' },
|
||||
compliance: { url: new URL('../identity/conformitate.mjs', import.meta.url), env: 'AERE_CONF_MODUL_COMPLIANCE' },
|
||||
};
|
||||
export const caleModul = (k) => process.env[MODULE[k].env] || fileURLToPath(MODULE[k].url);
|
||||
export const incarca = (k) => import(pathToFileURL(caleModul(k)).href);
|
||||
@@ -284,6 +288,44 @@ export const VERIFICATOARE = {
|
||||
'status-index': ['sdjwtvc.status-index', I, 'the index the credential names is inside the list'],
|
||||
'status-revoked': ['sdjwtvc.status-revoked', I, 'the status at that index is 0 (VALID); 1 INVALID, 2 SUSPENDED and any other value refuse'],
|
||||
'status-unjudged': ['sdjwtvc.status-unjudged', I, 'a status the credential names was judged, unless the verifier waived it (requireStatus false), in which case the verdict is PARTIAL'] } },
|
||||
// the Travel Rule between VASPs (enrolled 2026-10-18): three artifacts, each judged by the party that receives it with what it brings.
|
||||
// The beneficiary's KEM key binding with its VASP presentation, judged by the originator (its id, its nonce, its clock, the registries it
|
||||
// trusts, the status lists it holds); the sealed message, judged by the beneficiary (its id, its own KEM key pair, which decrypts, its
|
||||
// clock, its registries, its lists, its replay store); the signed receipt, judged by the originator (the message it sent, the beneficiary
|
||||
// it accepted). The VASP presentation inside is judged by the identity verifier; here it is one rule, `vasp-presentation`. The header
|
||||
// checks of a message are all made, and at any refusal among them the message is not opened: the encapsulation and the ciphertext are not reached
|
||||
'travel-rule': { artifacts: ['travel-rule-binding', 'travel-rule-message', 'travel-rule-receipt'], sursa: 'travelrule', reguli: {
|
||||
'binding-form': ['travelrule.binding-form', I, 'the binding is an aere-travel-rule-kem-binding that can be read: its KEM public keys are canonical x25519 and ml-kem-768 SPKI keys under the hybrid algorithm name, its times are RFC 3339 UTC times, its VASP keys can be read'],
|
||||
'binding-id': ['travelrule.binding-id', AU, 'the VASP id the binding names is the id derived from the VASP keys in it'],
|
||||
'binding-signature': ['travelrule.binding-signature', AU, 'the binding is signed by the VASP it names, Ed25519 and ML-DSA-65, both (purpose kem-binding)'],
|
||||
'binding-window': ['travelrule.binding-window', I, 'the binding is valid on the verifier\'s clock (validFrom .. validUntil)'],
|
||||
'vasp-presentation': ['travelrule.vasp-presentation', AU, 'the VASP credential presentation is valid for this verifier, judged by the identity verifier: issued by a registry the verifier trusts, made for the verifier (audience) with its nonce, fresh, signed by its holder, with its status read'],
|
||||
'vasp-status': ['travelrule.vasp-status', I, 'the status of the VASP credential was judged from a current status list of the registry handed to the verifier (not judged is a refusal, not "not revoked")'],
|
||||
'vasp-identity': ['travelrule.vasp-identity', AU, 'the VASP credential belongs to the identity that signed the binding or the message'],
|
||||
'vasp-claim': ['travelrule.vasp-claim', I, 'the credential says vasp: true'],
|
||||
'message-form': ['travelrule.message-form', I, 'the message is an aere-travel-rule-message (v 1) whose fields can be read (keys, times, base64 of the encapsulation and the ciphertext)'],
|
||||
'message-id': ['travelrule.message-id', AU, 'the originator id the message names is the id derived from the originator keys in it'],
|
||||
'message-signature': ['travelrule.message-signature', AU, 'the message (its header and its ciphertext) is signed by the originator it names, Ed25519 and ML-DSA-65, both (purpose travel-rule)'],
|
||||
'message-recipient': ['travelrule.message-recipient', I, 'the message is addressed to this VASP (to.id)'],
|
||||
'message-kem-keys': ['travelrule.message-kem-keys', I, 'the message is sealed to this VASP\'s KEM public keys (to.kem)'],
|
||||
'message-freshness': ['travelrule.message-freshness', I, 'the message was made within the allowed age of the verifier\'s clock, in both directions (a clock that cannot be read refuses)'],
|
||||
'replay-store': ['travelrule.replay-store', I, 'the verifier brought a replay store (an object with has and add that keeps the message ids at least the allowed age); without one nothing is opened'],
|
||||
replay: ['travelrule.replay', I, 'the message id was not received before'],
|
||||
'kem-alg': ['travelrule.kem-alg', I, 'the encapsulation is x25519+ml-kem-768 with a 32-byte ephemeral X25519 key'],
|
||||
'kem-open': ['travelrule.kem-open', I, 'the ephemeral X25519 key and the ML-KEM-768 ciphertext open with the verifier\'s private KEM keys'],
|
||||
ciphertext: ['travelrule.ciphertext', I, 'the AES-256-GCM ciphertext authenticates under the key derived from both shared secrets and the header (the header is the additional authenticated data and is in the key derivation)'],
|
||||
'receipt-form': ['travelrule.receipt-form', I, 'the receipt is an aere-travel-rule-receipt that can be read'],
|
||||
'receipt-from': ['travelrule.receipt-from', AU, 'the receipt is from the beneficiary the originator accepted, whose id is the id of its keys'],
|
||||
'receipt-signature': ['travelrule.receipt-signature', AU, 'the receipt is signed by that beneficiary, Ed25519 and ML-DSA-65, both (purpose travel-rule-receipt)'],
|
||||
'receipt-message': ['travelrule.receipt-message', I, 'the receipt names this message: its id and the hash of its signed header and ciphertext'] } },
|
||||
// compliance without surveillance (enrolled 2026-10-18): a presentation of a credential judged against the verifier's policy (the issuers
|
||||
// it believes, the claims it requires), with the verifier's audience, nonce and clock (all required) and the status lists and revocations
|
||||
// it holds. The presentation itself is judged by the identity verifier; here it is one rule. An invalid presentation establishes no
|
||||
// claim, so every rule of the policy is reported not met as well
|
||||
compliance: { artifacts: ['compliance-presentation'], sursa: 'compliance', reguli: {
|
||||
presentation: ['compliance.presentation', AU, 'the presentation is valid for this verifier, judged by the identity verifier with the policy\'s trusted issuers, this audience and nonce, the policy\'s allowed age, the status lists and revocations handed'],
|
||||
status: ['compliance.status', I, 'the credential status was judged from a current status list of the issuer handed to the verifier, when the policy requires it (requireStatus, true by default)'],
|
||||
rule: ['compliance.rule', I, 'every rule of the policy (equals, in, notIn, atLeast, present) holds on the claims the presentation establishes (the plain claims and the disclosed ones)'] } },
|
||||
};
|
||||
/**
|
||||
* The FAILED sites of verify-proof's `finality` level, classified. `fragment` must appear on exactly one such source line; `re`
|
||||
@@ -325,11 +367,15 @@ export const NEJUDECATE_DEVICE = { 'manufacture-missing': ['integrity', 'not-sup
|
||||
'authorization-missing': ['integrity', 'not-supplied'], 'status-unread': ['integrity', 'claim-not-checked'], 'status-other-manufacturer': ['integrity', 'claim-not-checked'], 'status-ignored': null, 'status-prior-ownership': null, 'status-future': null,
|
||||
'attestation-missing': ['integrity', 'not-supplied'], audience: ['integrity', 'not-supplied'], nonce: ['integrity', 'not-supplied'],
|
||||
'hardware-root': ['authenticity', 'unmeasurable'], 'witness-unread': ['anchoring', 'claim-not-checked'] };
|
||||
/** Verifiers published beside these that the suite does NOT enrol yet, with the pattern that counts their refusal sites. */
|
||||
export const NEINROLATE = [
|
||||
{ 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' },
|
||||
];
|
||||
/**
|
||||
* What the compliance verifier leaves UNJUDGED: the causes of the identity verifier it runs (its own audience, nonce and trusted issuers are
|
||||
* always supplied, so only the status and revocation causes can occur), mapped like NEJUDECATE_IDENTITY. A status list the credential
|
||||
* names and nobody read is a claim not checked (PARTIAL) only when the policy waived the status; when it requires it, the verifier refuses.
|
||||
*/
|
||||
export const NEJUDECATE_COMPLIANCE = { '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. Empty since
|
||||
* 2026-10-18: the Travel Rule and the compliance verifiers, the last two of the identity component, are enrolled above. */
|
||||
export const NEINROLATE = [];
|
||||
|
||||
/** public rule id -> { verifier, source, level, says } for every mapped rule */
|
||||
export function hartaPublica() {
|
||||
|
||||
Reference in new issue
Block a user