Skip to content

Commit b59ce1a

Browse files
authored
Merge pull request #230 from commandlayer/codex/rebuild-commandlayer-verifier-page
Rebuild verifier page with proof-first messaging and updated verifier UI
2 parents e00df56 + dcbcb54 commit b59ce1a

2 files changed

Lines changed: 56 additions & 142 deletions

File tree

public/js/verify.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function renderChecks(result) {
2828
['Status', result.status],
2929
['Hash Matches', result.hash_matches],
3030
['Signature Valid', result.signature_valid],
31-
['ENS Resolved', result.ens_resolved],
31+
['Signer Identity Checked', result.signer_identity_checked ?? result.ens_resolved],
3232
];
3333

3434
els.checksList.innerHTML = checks.map(([label, value]) => {
@@ -43,13 +43,16 @@ function renderMeta(result) {
4343
const rows = [
4444
['status', result.status],
4545
['reason', result.reason],
46-
['signer', result.signer],
46+
['signer_id', result.signer_id ?? result.signer],
4747
['verb', result.verb],
48-
['hash', result.hash],
48+
['canonicalization', result.canonicalization],
49+
['hash_alg', result.hash_alg],
50+
['hash_value', result.hash_value ?? result.hash],
4951
['hash_matches', result.hash_matches],
52+
['signature_alg', result.signature_alg],
5053
['signature_valid', result.signature_valid],
51-
['ens_resolved', result.ens_resolved],
52-
['key_id', result.key_id],
54+
['kid', result.kid ?? result.key_id],
55+
['signer_identity_checked', result.signer_identity_checked ?? result.ens_resolved],
5356
];
5457

5558
if (result.public_key_source != null) {
@@ -78,17 +81,20 @@ function setVerdict(ok, note, isIdle = false) {
7881
}
7982

8083
function resetToNeutralState(note = 'Run verification to see verdict.') {
81-
renderChecks({ status: null, hash_matches: null, signature_valid: null, ens_resolved: null });
84+
renderChecks({ status: null, hash_matches: null, signature_valid: null, signer_identity_checked: null });
8285
renderMeta({
8386
status: null,
8487
reason: null,
85-
signer: null,
88+
signer_id: null,
8689
verb: null,
87-
hash: null,
90+
canonicalization: null,
91+
hash_alg: null,
92+
hash_value: null,
8893
hash_matches: null,
94+
signature_alg: null,
8995
signature_valid: null,
90-
ens_resolved: null,
91-
key_id: null,
96+
kid: null,
97+
signer_identity_checked: null,
9298
public_key_source: null,
9399
});
94100
setVerdict(false, note, true);

0 commit comments

Comments
 (0)