This commit is contained in:
2023-04-28 13:21:02 +02:00
parent 53589f7d19
commit 743f893937
18 changed files with 520 additions and 92 deletions

View File

@@ -116,7 +116,7 @@ app.setupdata = () => {
const url=e.getAttribute(k);
let localname=url.split('/').slice(-1)[0];
if (url.includes('.mustache')) localname=localname.substring(0,localname.length-12);
if (url.includes('.html') || url.includes('.html') ) localname=localname.substring(0,localname.length-6);
if (url.includes('.html') || url.includes('.json') ) localname=localname.substring(0,localname.length-8);
if (!list[k]) list[k]={};
list[k][localname]=url;
}

View File

@@ -95,7 +95,7 @@ apx.checkdetachedSignature = async (
const verificationResult = await openpgp.verify({
msg, // Message object
signature,
verificationKeys: publicKey,
verificationKeys: publicKey
});
const { verified, keyID } = verificationResult.signatures[0];
try {

View File

@@ -14,6 +14,8 @@
</div>
<div class="col-sm-6" data-spacename="userinterface">
<div class="row g-3">
<h3>A decentralized Identity</h3>
<p>apXtrib allow you to create keys to identify yourself with a universal alias</p>
<div class="col-md-6">
<label for="inputalias" class="form-label">Your alias</label>
<input type="text" class="form-control" id="inputalias" placeholder="A public alias that any one see">
@@ -30,6 +32,7 @@
<button type="button" id="generatekeys" onclick="app.createIdentity(document.getElementById('inputalias').value,document.getElementById('inputpassphrase').value)" class="btn btn-primary">Generate keys</button>
</div>
<div class="col-12">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="gridCheck">
<label class="form-check-label small" for="gridCheck">

View File

@@ -0,0 +1 @@
{"nationId":"ants","townId":"usbfarm","tribeId":"devenv","comment":"Generate by apxtrib.js with minimum of information"}