|
@ -110,10 +110,20 @@ |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="text-slate-500 text-sm font-bold">Public Key</div> |
|
|
<div class="text-slate-500 text-sm font-bold">Public Key (base 64)</div> |
|
|
<div class="text-sm text-slate-500 mb-1"> |
|
|
<div class="text-sm text-slate-500 mb-1"> |
|
|
<span |
|
|
<span> |
|
|
><code>{{ publicHex }}</code> |
|
|
<code>{{ publicBase64 }}</code> |
|
|
|
|
|
<button @click="copy(publicBase64)"> |
|
|
|
|
|
<fa icon="copy" class="text-slate-400 fa-fw ml-1"></fa> |
|
|
|
|
|
</button> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="text-slate-500 text-sm font-bold">Public Key (hex)</div> |
|
|
|
|
|
<div class="text-sm text-slate-500 mb-1"> |
|
|
|
|
|
<span> |
|
|
|
|
|
<code>{{ publicHex }}</code> |
|
|
<button @click="copy(publicHex)"> |
|
|
<button @click="copy(publicHex)"> |
|
|
<fa icon="copy" class="text-slate-400 fa-fw ml-1"></fa> |
|
|
<fa icon="copy" class="text-slate-400 fa-fw ml-1"></fa> |
|
|
</button> |
|
|
</button> |
|
@ -138,15 +148,6 @@ |
|
|
Edit Identity |
|
|
Edit Identity |
|
|
</router-link> |
|
|
</router-link> |
|
|
|
|
|
|
|
|
<h3 class="text-sm uppercase font-semibold mb-3">Contact Actions</h3> |
|
|
|
|
|
|
|
|
|
|
|
<a |
|
|
|
|
|
href="contact-scan.html" |
|
|
|
|
|
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6" |
|
|
|
|
|
> |
|
|
|
|
|
Scan New Contact |
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<h3 class="text-sm uppercase font-semibold mb-3">Data</h3> |
|
|
<h3 class="text-sm uppercase font-semibold mb-3">Data</h3> |
|
|
|
|
|
|
|
|
<a |
|
|
<a |
|
@ -223,6 +224,9 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings"; |
|
|
import { deriveAddress, generateSeed, newIdentifier } from "@/libs/crypto"; |
|
|
import { deriveAddress, generateSeed, newIdentifier } from "@/libs/crypto"; |
|
|
//import { testServerRegisterUser } from "../test"; |
|
|
//import { testServerRegisterUser } from "../test"; |
|
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires |
|
|
|
|
|
const Buffer = require("buffer/").Buffer; |
|
|
|
|
|
|
|
|
@Options({ |
|
|
@Options({ |
|
|
components: {}, |
|
|
components: {}, |
|
|
}) |
|
|
}) |
|
@ -232,6 +236,7 @@ export default class AccountViewView extends Vue { |
|
|
lastName = ""; |
|
|
lastName = ""; |
|
|
mnemonic = ""; |
|
|
mnemonic = ""; |
|
|
publicHex = ""; |
|
|
publicHex = ""; |
|
|
|
|
|
publicBase64 = ""; |
|
|
derivationPath = ""; |
|
|
derivationPath = ""; |
|
|
showContactGives = false; |
|
|
showContactGives = false; |
|
|
|
|
|
|
|
@ -281,6 +286,7 @@ export default class AccountViewView extends Vue { |
|
|
const identity = JSON.parse(accounts[0].identity); |
|
|
const identity = JSON.parse(accounts[0].identity); |
|
|
this.address = identity.did; |
|
|
this.address = identity.did; |
|
|
this.publicHex = identity.keys[0].publicKeyHex; |
|
|
this.publicHex = identity.keys[0].publicKeyHex; |
|
|
|
|
|
this.publicBase64 = Buffer.from(this.publicHex, "hex").toString("base64"); |
|
|
this.derivationPath = identity.keys[0].meta.derivationPath; |
|
|
this.derivationPath = identity.keys[0].meta.derivationPath; |
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
this.alertMessage = |
|
|
this.alertMessage = |
|
|