Hey Alby Team.

I noticed a weird situation.

I have generate an alby account with balance A, and I have another OneKey account with balance B.

I generate an invoice of n sats by alby account. My friend with another alby account having balance C pay this invoice. and then i use OneKey pay for that invocie again. Both payment is successful, but my =alby account can only recieve first payment. and my final balance is alby : A+n, my friend: C-n, Onekey B-n.

So there is n sats just gone with the wind?

nostr:npub1zk6u7mxlflguqteghn8q7xtu47hyerruv6379c36l8lxzzr4x90q0gl6ef nostr:npub1q5sah9f3p9kl7uqdeaqskqwmg74ktxx70e0093dzh4lpzcp3t0mqzxky65 nostr:npub1xv8mzscll8vvy5rsdw7dcqtd2j268a6yupr6gzqh86f2ulhy9kkqmclk3x

Reply to this note

Please Login to reply.

Discussion

I’ve never heard of OneKey. Are you sure the problem isn’t on their side?

Switch one key to nostr:npub1hcwcj72tlyk7thtyc8nq763vwrq5p2avnyeyrrlwxrzuvdl7j3usj4h9rq same problem happened.

However, if invoice is generated by WoS, everything is safe.

See my latest post, I posted my assumptions there.

This OneKey? 😳

#m=image%2Fjpeg&dim=965x1920&blurhash=%5D6R%7B%23%3B9E%5EmxG%25g%5ETD%25EJIospyXtl9FbEM%7B5O9FxJRks%3A%7Dv%25154WUIUR%7EIURiITt8OTt8MyoOS0%3FIE1TIRiM%7CEfn%25MxWVso&x=313b8c5c37bc220775ef9ac4e72d2e31c6137106eb9e91e4b45fd1d052cab9cb

Yes it supports lightning network payment. However , change one key to wallet of Satoshi will end up in same result I mentioned above.

I'm no expert and this is a total guess but I would think at some point the funds will return onchain since only one payment can be made per invoice. Theres a signature handshake and so if that second pmt doesnt receive a confirmation back, it will eventually expire... maybe?

If true, in the wos instance, IDK what happens there since you don't hold the keys... I'm not sure the situation with one key. Would be interesting if you did it again but with a self custody lightning wallet. Maybe in a week those funds return onchain?

I posted my assumption here. Would you mind check to see if it make sense?

nostr:note15gv0azs7tyw86cyee84eywfthtnn52lvaedl9yg2m8hey0aj604qnz9ypx

Hrmm seems to make sense? Basically two sets of books... this is a very similar problem we are trying to get away from by using bitcoin in the first place. Under your assumption, Alby's books is allowing for both payments while LND is not.

I'm gonna make a guess here because I've encountered the same issue when building things on LN.

It sounds like a subtle issue with Lightning implementatios: internal payments have to be settled internally in a separate database and not in the lightning node itself (LND doesn't support self payments, afaik CLN now does).

When the second payment is made through the real LN, the invoice is picked up by the node but the Alby backend already settled the invoice.

Someone tag Alby for free alpha

Yess, we saw that feedback, thanks!

yeah see my another post of my assumption

I also tested other lightning wallet. WoS and blink is safe, they handle this situation specifically

OneKey wallet also has same issue.

Alby support handle this specifically. Not at software level.

nostr:note15gv0azs7tyw86cyee84eywfthtnn52lvaedl9yg2m8hey0aj604qnz9ypx