Show info from online registry in analyzer

master
Skylar Ittner 3 years ago
parent 99b8173f7e
commit c4df62c519

@ -271,6 +271,24 @@ then run the analyze tool again to prove if it was changed since notarization.")
var fingerprintend = fingerprint;
}
$("#verifyModalDetailedInfoList").append('<li class="list-group-item"><i class="fas fa-fingerprint fa-fw"></i> Public key ID: ' + fingerprintstart + '<b>' + fingerprintend + '</b></li>');
lookupPublicKey(fingerprint, function (result) {
if (result == false) {
return;
}
if (result.length == 1) {
$("#verifyModalDetailedInfoList").append('<li class="list-group-item"><i class="fas fa-globe fa-fw"></i> '
+ 'The signing notary\'s information was found in an online database.<br>'
+ '<span class="ms-3 d-block">'
+ (result[0].name == null ? '' : 'Name: ' + sanitizeHTMLString(result[0].name) + '<br>')
+ (result[0].email == null ? '' : 'Email: ' + sanitizeHTMLString(result[0].email) + '<br>')
+ (result[0].state == null ? '' : 'State: ' + sanitizeHTMLString(result[0].state.toUpperCase()) + '<br>')
+ (result[0].location == null ? '' : 'Location: ' + sanitizeHTMLString(result[0].location) + '<br>')
+ (result[0].idnumber == null ? '' : 'Commission ID: ' + sanitizeHTMLString(result[0].idnumber) + '<br>')
+ (result[0].commissionexpires == null ? '' : 'Commission Expires: ' + formatTimestamp("F j, Y", result[0].commissionexpires))
+ '</span>'
+ '</li>');
}
});
}
if (typeof signername == "string") {

Loading…
Cancel
Save