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: [],
orders: [],
user: {
keys: {}
keys: {},
orders: {}
},
keysDialog: {
show: false,
@ -353,12 +354,10 @@
const privkey = nostr.generatePrivateKey()
const pubkey = nostr.getPublicKey(privkey)
this.user = {
keys: {
this.user.keys = {
privatekey: privkey,
publickey: pubkey
}
}
},
async getMessages(room_name, all = false) {
await LNbits.api