refactor keys

This commit is contained in:
Tiago Vasconcelos 2022-12-22 10:44:56 +00:00
parent b179b48edc
commit 952677ae13

View file

@ -270,7 +270,8 @@
products: [], products: [],
orders: [], orders: [],
user: { user: {
keys: {} keys: {},
orders: {}
}, },
keysDialog: { keysDialog: {
show: false, show: false,
@ -353,11 +354,9 @@
const privkey = nostr.generatePrivateKey() const privkey = nostr.generatePrivateKey()
const pubkey = nostr.getPublicKey(privkey) const pubkey = nostr.getPublicKey(privkey)
this.user = { this.user.keys = {
keys: { privatekey: privkey,
privatekey: privkey, publickey: pubkey
publickey: pubkey
}
} }
}, },
async getMessages(room_name, all = false) { async getMessages(room_name, all = false) {