conformance: 97 rules of 9 verifiers, 206 vectors; verify-layer and agents refuse a classical key under an ML-DSA-65 name; market-settlement reads the notarization time from the certified read; proof-of-ai README in English
This commit is contained in:
1 parent
c9f2932e04
commit
c9798a0013
111 files changed
+15871
-292
No files matched your search
@@ -126,6 +126,11 @@ try {
|
||||
const hsr = path.join(T, 'head-semnat-rau.json'); fs.writeFileSync(hsr, JSON.stringify(cs));
|
||||
const rSr = side(['verify-log', '--log', log, '--attested', hsr]);
|
||||
cer('S CONTROL: o semnatura de cap stricata -> refuzat chiar fara --signer (cod 1)', rSr.cod === 1 && /does not verify/.test(rSr.out));
|
||||
// 2026-10-03: o cheie CLASICA (Ed25519) care semneaza capul si declara schema ml-dsa-65: pana azi trecea drept cap semnat ML-DSA-65
|
||||
{ const cc = jr(hs); const { publicKey, privateKey } = crypto.generateKeyPairSync('ed25519');
|
||||
cc.signature = { scheme: 'ml-dsa-65', publicKey: publicKey.export({ type: 'spki', format: 'der' }).toString('base64'), signature: crypto.sign(null, Buffer.from(JSON.stringify(cc.statement), 'utf8'), privateKey).toString('base64') };
|
||||
const hcc = path.join(T, 'head-cheie-clasica.json'); fs.writeFileSync(hcc, JSON.stringify(cc)); const rCc = side(['verify-log', '--log', log, '--attested', hcc]);
|
||||
cer('S CONTROL: un cap semnat cu o cheie clasica (Ed25519) care declara ml-dsa-65 -> refuzat (cod 1)', rCc.cod === 1 && /public key is ed25519/.test(rCc.out)); }
|
||||
|
||||
// ---- N: intrari nevalide -------------------------------------------------------------------------------------------------
|
||||
const logN = path.join(T, 'necitibil.log'); fs.writeFileSync(logN, JSON.stringify(intrari[0]) + '\n{nu e json\n');
|
||||
|
||||
Reference in new issue
Block a user