refactor keys
This commit is contained in:
parent
b179b48edc
commit
952677ae13
1 changed files with 5 additions and 6 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue