Better HN
topnewbestaskshowjobs
Log inSign up

ryanatdistrust

50 karma · joined Aug 8, 2023 (3y ago) · 15 submissions

Submissions

comment 3y ago · link · parent

Nanoseconds since epoch, which means eventually it does loop around, so at the very least it's not possible to generate a specific wallet by knowing when it was first used.

comment 3y ago · link · parent

That is correct, time is the only entropy for the command, and the function they use to generate random numbers is also flawed in that it can only produce 2^32 possible outputs.

comment 3y ago · link · parent

As discussed elsethread, it used the lower bits of the time value, so while there is is a fraction of the 2^32 space due to precision loss in the OS time calculations, it is not as simple as "between when this software was released and now, in seconds".

comment 3y ago · link · parent

2^32 is still incredibly small for crypto and is inexcusable.

comment 3y ago · link · parent

As long as people can write code, bugs will exist.

comment 3y ago · link · parent

My numbers are very rough estimates and not good enough to do work on. More accurate information may be made public later.

comment 3y ago · link · parent

I was not involved in that specific aspect, so I can't provide accurate information. We may release more information later in the future.

comment 3y ago · link · parent

It looks neat, I'll pass this along to the team and take a deeper look at it later.

comment 3y ago · link · parent

That is correct, you still have 2^32 permutations of possible values.

comment 3y ago · link · parent

We used the broken algorithm from `bx` in a custom Rust program to brute force this.

comment 3y ago · link · parent

we had so much fun trying to figure out the icon!

comment 3y ago · link · parent

It actually uses the most precise 32 bits of the date, so it's any, like, nanosecond between 0 and some other small amount of seconds. You can't brute force a wallet by knowing approximately when it was made, but you can brute force every mnemonic if you have the time or a bit of cash to throw at a server.

EDIT: It loops around to 0 every 4.something seconds, so it's not like everything after 4 is the same key. It's just a more random distribution than what you may be thinking.

comment 3y ago · link · parent

The difference between 32 bits and 64 bits is the amount of people on Earth compared to (EDIT) the amount of grains of sand on Earth. 32 bits is nothing when it comes to entropy, and it can take a security researcher (like us) only $100 to rent a machine to completely brute force it. Nowadays, only values less than 128 or 256 bits (which are exponentially bigger) are seen as appropriate.

comment 3y ago · link · parent

To verify, this is something anyone can attack, as was proven by our brute force lookup service: https://lookup.milksad.info.