forked from jsnbuchanan/crowd-funder-for-time-pwa
adjust didInfo so we can use DIDs and not identities, removing last of identities in memory
This commit is contained in:
@@ -50,7 +50,6 @@ export default class AccountViewView extends Vue {
|
||||
loading = true;
|
||||
|
||||
async mounted() {
|
||||
await accountsDB.open();
|
||||
const mnemonic = generateSeed();
|
||||
// address is 0x... ETH address, without "did:eth:"
|
||||
const [address, privateHex, publicHex, derivationPath] =
|
||||
@@ -58,6 +57,8 @@ export default class AccountViewView extends Vue {
|
||||
|
||||
const newId = newIdentifier(address, publicHex, privateHex, derivationPath);
|
||||
const identity = JSON.stringify(newId);
|
||||
|
||||
await accountsDB.open();
|
||||
await accountsDB.accounts.add({
|
||||
dateCreated: new Date().toISOString(),
|
||||
derivationPath: derivationPath,
|
||||
|
||||
Reference in New Issue
Block a user