order not logged in - create keypair

This commit is contained in:
Tiago Vasconcelos 2023-03-10 12:03:24 +00:00
parent d192fd6dfc
commit e9f37f4a6b
2 changed files with 23 additions and 4 deletions

View file

@ -163,6 +163,13 @@ async function customerStall(path) {
this.customerUseExtension = true
this.checkoutDialog.data.pubkey = this.customerPubkey
},
async generateKeyPair() {
this.customerPrivkey = NostrTools.generatePrivateKey()
this.customerPubkey = NostrTools.getPublicKey(this.customerPrivkey)
this.customerUseExtension = false
this.checkoutDialog.data.pubkey = this.customerPubkey
this.checkoutDialog.data.privkey = this.customerPrivkey
},
openCheckout() {
// Check if user is logged in
if (this.customerPubkey) {