keys now working

This commit is contained in:
ben 2022-12-15 23:32:49 +00:00
parent 8edcb25eee
commit 1357b17b64
2 changed files with 1 additions and 6 deletions

View File

@ -1443,7 +1443,7 @@
LNbits.api
.request(
'GET',
'/diagonalley/api/v1/keys/merchant',
'/diagonalley/api/v1/keys',
this.g.user.wallets[0].adminkey
)
.then(response => {

View File

@ -488,11 +488,6 @@ async def api_diagonalley_generate_keys():
while not public_key.startswith("02"):
private_key = PrivateKey()
public_key = private_key.pubkey.serialize().hex()
# if the call is made from merchant's side skip adding pubkey to order
if(payment_hash != "merchant"):
# set pubkey in order
await set_diagonalley_order_pubkey(payment_hash, pubkey=public_key[2:])
return {"privkey": private_key.serialize(), "pubkey": public_key[2:]}