pull down to refresh

@ek has overhauled wallets with some of the things we've learned over the last 6 months or so:

  1. attach wallets, not protocols
  2. attach multiple versions of the same wallet and protocol
  3. implicit send wallet device sync
    • device sync is on by default and you only need to bother with copying passphrases when adding additional devices
  4. improved logging

The UI/UX is admittedly a little rough around the edges still, but the foundation, the hard part, is better suited to our plans and needs. We'll iterate on UI/UX based on feedback and please let us know if you experience any problems.

if you are being asked for your passphrase unexpectedlyif you are being asked for your passphrase unexpectedly

You will need to click reset, creating a new passphrase, and attach your sending wallets again.

Our on-device migration to 'wallets v2' failed for some of you. There was a bug that re-encrypted your wallets with a new passphrase which will make your existing attached sending wallets inaccessible. We're so sorry and know how frustrating this stuff is.

I'll be online all day to help with any problems. Please mention me or ek if you need help.


View all commits here: https://github.com/stackernews/stacker.news/commits/master/


Since starting the Open Source Contributor Award Rules (OSCARs), we've paid a total of 24.8m sats to 49 contributors for 253 contributions! View a nearly up to date list of contribution awards here: https://github.com/stackernews/stacker.news/blob/master/awards.csv


Previous release: #1010425

Now I am getting this message on mobile when attempting to access my wallets:

failed to load wallets
decryption error

@ek
@k00b

reply
47 sats \ 20 replies \ @ek 16 Jul

Thank you, so decryption is indeed failing.

But you can load your wallets fine on desktop?

reply

Yes. everything is fine on desktop.

reply

You're using grapheneOS on mobile right siggy? I wonder if the browser doesn't support a feature we expect or something.

reply

Correct

reply
47 sats \ 9 replies \ @ek 16 Jul

Hey, sorry we still haven't figured out what's going wrong on your mobile device. We just pushed some more code. Do you now see decryption error: OperationError?

reply
1000 sats \ 7 replies \ @siggy47 16 Jul

Actually, the button "unlock wallets" has reappeared, under which "password is required" appears. So, when I unlock, they ask for the passphrase. I then copy it from my laptop and paste it into my phone. It then says it is the wrong pass phrase. Scanning the qr code also fails. What I plan to do now is reset the wallet on my laptop, then attempt to create a fresh nwc send link on my phone, and then try to link my laptop with the passphrase. I use SN more on the phone than the laptop.

Never mind. The pass phrase now works, and everything seems good to go. !!!!! Yep, I'm zapping away.

reply
36 sats \ 6 replies \ @ek 16 Jul

wooo, let's go!

sorry for the bad experience though

0 sats \ 0 replies \ @ek 16 Jul

At this point, if not too inconvenient, you could also try to clear your browser storage to remove the key that is trying to decrypt your wallets.

You should then definitely get the button to enter your passphrase.

reply
0 sats \ 0 replies \ @ek 16 Jul

ohhh, this is a good hint

reply
36 sats \ 3 replies \ @ek 16 Jul

Can you give me a screenshot of the wallets page on desktop so I can check if what you see is also what I expect you to see?

reply
100 sats \ 1 reply \ @siggy47 16 Jul

deleted by author

reply
36 sats \ 0 replies \ @ek 16 Jul

Okay, that's what I expected, mhh.

You can delete the screenshot now if you want

reply

deleted by author

Do we still clear storage on logout? That might be a quick fix if so.

reply
0 sats \ 0 replies \ @ek 16 Jul

No, because there's nothing to clear anymore

edit: oh, except the key ...

reply

Great job!

When you open any page on SN for the first time, that orange square pops up next to the nym. It disappears really fast though, I don’t think it used to do that. browser version.

reply
55 sats \ 0 replies \ @ek 16 Jul

damn, that's a regression, thanks for the report

reply

Also, I noticed a brief 500 when loading SN earlier this morning. I assume it was during this deployment?

reply

Yep, we expected a backwards incompatible rolling deployment (db gets migrated, but client doesn't know yet), but this migration was also non-atomic (spread across two migrations) and the second one failed unexpectedly requiring manual intervention.

I woke up at 5a this morning and ek and I were in a video call anticipating something like this. By far, this is the most complicated migration we've done to date. We migrated 'polymorphic' relations (ie a hack with triggers for fast polymorphic joins) and encrypted columns, nearly doubling the number of tables we store wallet related stuff in.

reply
150 sats \ 1 reply \ @Scoresby 16 Jul

5am...migrated polymorphic relations...backwards incompatible rolling deployment...failed unexpectedly

this is what I imagine my nightmares would be like if I was a developer.

reply

This was a nightmare. When these migrations fail, you have no idea how long it might take to resolve. Even with tons of QA, we experienced a bunch of problems.

Modeling data for long term storage and millisecond access is hard. Getting the design wrong, like we did with wallets v1, is very expensive.

reply
100 sats \ 0 replies \ @sox 16 Jul

actually awesome omg

reply

ah that's what that was

reply
50 sats \ 0 replies \ @ek 16 Jul

yes

reply

Okay I am back in action! Should I establish a passphrase now?

reply
84 sats \ 1 reply \ @k00b OP 16 Jul

I'd wait to establish the passphrase until you need to sync with a device and can write it down.

reply

Okay thank you.

reply

Nvm I see the app already set one for me after I reset

reply

Yes, it gives you a one immediately so that your wallets are properly secured even without syncing to other devices yet.

reply

Sigh! I wish we had more warning this was going to come. I am not going to be able to resync my wallets till this evening. Thus I may have trouble zapping all day.

reply

Stuff like this is exactly why I’ve been keeping a buffer (~5k) of sats and CCs in my SN wallet. That way I 'never' run into issues! If you need some CCs, just say it, I’ll lend you some!

reply

they need to include credit card purchase of Cowboy Credits will be easier process than focusing for an exchange for BTC LN elsewhere, especially for dummy people how first signup on stacker news

reply

Nah, that ain't really a priority right now. We gotta grow way more before we even need that feature.

reply

Thanks. I do have a workaround but it’s just a real pain in rear to do. But let me get working on it

reply

I'd be happy to buy you some cowboy credits for your trouble and to keep the zaps coming.

reply

Thanks but I have a workaround that I do in situations like this. It’s annoying but I can get back up and zapping in a bit.

Thanks for the offer

reply

This is a great offer, no jk.

reply

Okay, I created a new send passphrase on dektop linux, and things seem fine. On mobile, I can't access wallet, nor can I zap. It just keeps reloading.

reply
36 sats \ 9 replies \ @ek 16 Jul

mhhh, not sure yet why it would load forever

will keep you updated

reply

Okay. Can you explain how to unsync devices now? Maybe I can unsync, load a new passphrase on mobile, then live with them unsynced for a while?

reply

ek removed the ability to unsync.

  1. unsynced wallets are less secure
  2. it made the code more complicated

I'm sorry siggy. I'm confident you'll need to reset and reattach sending wallets.

reply

That's okay, but I can't reset on mobile. It keeps reloading. The send ability I have on desktop is not synced with mobile, so I can't zap on my phone. Timing sucks, since I'm going away tomorrow and won't have access to my desktop, lan for nodes, etc. Oh well. I guess I'll be cc'ing for a while.

reply
36 sats \ 1 reply \ @ek 16 Jul

I should have added code to show errors to users. I think loading your wallets is failing.

Will do that now, we should definitely be able to get your wallets to load on mobile within the next few hours

reply

Great. Either way I'll figure something out.

reply
36 sats \ 3 replies \ @ek 16 Jul

There's no unsync anymore, all sending wallets are now always stored encrypted on the server.

The first device you opened SN with today gets to set the key, and when you use a different device, it will either already have the same key, or it won't, then it will ask you for the passphrase to derive the same key.

But I think something went wrong with detecting existing keys, so we accidentally generated new keys for some 🙈

But not sure if your wallets loading forever on mobile is related to that.

reply

I was weary of that new vibe coded hook that you made last minute. Is that the cause?

reply
0 sats \ 1 reply \ @ek 16 Jul

The bug is at least happening in there, but it might also have happened with what I had before

it wasn't vibe coded though 👀

reply

lol

it just looked pretty thoroughly cooked, like most vibe code things

reply
150 sats \ 3 replies \ @ek 16 Jul

Found a bug that is related to why old passphrases no longer work, but not sure I can fix it in a way that they will start working again, only that it doesn't happen again.

reply

If you want to submit a pr, I can try to get it deployed before some folks encounter the bug.

reply
0 sats \ 1 reply \ @ek 16 Jul

okay, should be up in 10 minutes

edit: nooo, can't reproduce anymore

reply
100 sats \ 0 replies \ @anon 17 Jul

deleted by author

Wow, great work. I didn’t realize there were so many wallet choices!

reply
50 sats \ 0 replies \ @ek 16 Jul

It's even only the ones that stackers already attached in some way via the existing options.

There are probably a lot more!

We have plans to leverage that page of all lightning wallets on this planet

reply

things seemed pretty smooth for me via lnd attachment option. no apparent interruption except for a few moments where i got a 500 internal server error.

reply
11 sats \ 1 reply \ @ek 16 Jul

thanks for the feedback, glad it worked for you

reply

thanks for your work. logs and wallet pages are looking pretty slick.

reply

Congrats on the release!

I know I wasn't thrilled with non-custodial move when it was announced and first implemented but I think I've seen the light on connected wallets.

It seems like SN is out in-front of the pack of experimenting and implementing this concept, which also happens to be gaining regulatory legitimacy at the same time.

reply

Congrats on the release! I can vouch all these wallet integrations take a lot of hard work to accomplish...and even more "sweat and tears" to work seamlessly!

lookin damn good!

reply
if you are being asked for your passphrase unexpectedly

I saw this message , just clicked reset and attached coinos wallet. All working smoothly. Thanks for this upgrade!

reply
15 sats \ 0 replies \ @ek 16 Jul

thanks for the feedback!

reply

Thank you SN Team for the nice job. SN is self-custodial

reply

I didn't get any notifications or messages to do anything. Does that mean no action is needed on my part? I seem to be able to zap from my wallet (Alby Desktop connected via NWC)

reply
30 sats \ 0 replies \ @ek 16 Jul

Yes, don’t need to do anything, that’s how it was supposed to go

reply
21 sats \ 1 reply \ @jasonb 16 Jul

I’m guessing the gun requirements were lightened up? I’m a triple threat again!

reply

Device sync is on by default now.

reply

Adding my ln recieve and nwc send, I noticed the new layout, nice layout and good ux, cashu me is available which is pretty cool. Nice touch

reply
0 sats \ 0 replies \ @ek 16 Jul

thanks and welcome!

reply
21 sats \ 0 replies \ @Cje95 16 Jul

Yall just keep on pumping out the improvements!!! Thank you!

reply
  • Go to your Stacker News profile where you’ve already linked your wallet (Coin OS, Alby, Blinck, NWC, etc.).
  • Click on the "Wallet" tab.
  • Make sure there isn’t an orange square next to "Wallet."
  • Select "View my passphrase" and copy it.
  • You can then switch to another device.
  • Go to your profile @.
  • Click on "Wallet," which should have an orange square next to it, indicating it’s not synced.
  • Click on "Unlock Wallets" and paste your passphrase.
    And there you go, you’re all set!
reply

Easier process may be

reply

Hi 👋, thanks for always trying to improve SN, I'm new. Should I fix anything?

reply

deleted by author

reply
0 sats \ 4 replies \ @ek 16 Jul

Does BitKit support NWC, provide a lightning address or any other API to send or receive?

reply

just LN address that I know, maybe some sort of APIs to send/receive but not sure

reply
0 sats \ 2 replies \ @ek 16 Jul

I just downloaded BitKit and I can't find a lightning address

reply

need to add an LSP or open a channel with wallet funds

reply
0 sats \ 0 replies \ @ek 16 Jul

urgh

reply