Better HN
topnewbestaskshowjobs
Log inSign up

inersha

545 karma · joined Nov 14, 2017 (9y ago) · 27 submissions

I like making educational websites. I'm currently making one about Bitcoin.
Submissions

comment 5y ago · link · parent

> You can just create a centralized system that does the same thing as Bitcoin and consume less power. It is that simple.

You wouldn't be allowed to do this unfortunately.

comment 6y ago · link · parent

No problem at all, thank you.

comment 6y ago · link · parent

If you add the third optional argument of "enter" when running the sha256.rb script you can use your keyboard to step through. I haven't set this up for the individual animations though.

ruby sha256.rb sizzzzlerz enter

I didn't do anything special for the terminal animation. I just work out the current state of the hash function at each step, clear the terminal, and print the entire state back to the screen. I know it looks like I'm directly manipulating each individual bit in your terminal, but really I'm just redrawing your screen.

I'd like to do something more practical in future, but for this I just did what I needed to do to get an animation working. Still, every bit you are seeing is correct.

comment 6y ago · link · parent

I follow Tamás Görbe on Twitter and he regularly posts cool mathematical animations: https://twitter.com/TamasGorbe/status/1238448040521932801

comment 6y ago · link · parent

1) Thank you.

2) It's certainly a combination I never anticipated.

3) I look forward to the book.

comment 6y ago · link · parent

Thank you for being so kind, it means a lot.

comment 6y ago · link · parent

My pleasure, thank you.

comment 6y ago · link · parent

I have thought about it. Any particularly interesting ones?

comment 6y ago · link · parent

I wanted to understand how SHA-256 works, so I made a terminal animation that shows the bitwise operations at each step. I wrote a text guide in the README.md to explain what's going on. I think my technical terminology is okay.

I'm new to hash functions though, so I don't yet know why SHA-256 has been designed in the way it has (e.g. why exact numbers were chosen in the bitwise rotations).

As far as I understand, the Sigma functions promote diffusion of bits to help prevent collisions, and Choice/Majority/Addition help to make it a one-way function, but I'm not entirely sure. I'd be interested in learning more about the design if anyone has experience in this field.

10.

Show HN: SHA-256 Animation(github.com ↗)

1053 points · by inersha · 6y ago · 102 comments

11.

Show HN: Get a list of every unspent Bitcoin in the blockchain(github.com ↗)

1 points · by inersha · 7y ago · discuss

comment 7y ago · link · parent

A friend of mine stretched her ears and went to Dr. Evil to have them sown up. He did a great job, and it cost £200. This is not available on the NHS and probably would have cost thousands (for someone with less experience in the same procedure).

Such a shame to see this. Dr. Evil is a good guy.

13.

Show HN: How to import the entire Bitcoin blockchain in to Neo4j(learnmeabitcoin.com ↗)

3 points · by inersha · 7y ago · discuss

comment 7y ago · link · parent

I've been using Neo4j to store the bitcoin blockchain. Bitcoin transactions have a graph structure, and so by storing the entire blockchain in a graph database you can easily query for connections between different bitcoin addresses.

If you're interested, I've done some explanation of it here: http://learnmeabitcoin.com/neo4j/

My experience with Neo4j has been a good one. The database is currently around 1TB and runs continuously without a problem. It's fast enough to use it as a public blockchain explorer, whilst simultaneously keeping up with importing all the latest transactions and blocks on the network.

It took some time to get the hang of the Cypher query language to get it to do what I want, but the browser it comes with is handy for learning via trial and error. I found the people on the Neo4j slack channel to be incredibly helpful with my questions.

comment 7y ago · link · parent

I like the analogy in your final paragraph. I see hacker news as the nurse in the classroom setting.

comment 7y ago · link · parent

I suppose there may be a distinction between asking "how does anaesthesia work?" and "should I perform surgery at home?".

comment 7y ago · link · parent

I never understand why people try to separate blockchain and bitcoin.

comment 7y ago · link · parent

Sure, there have been multiple bubbles. Always good to see the tulip posters keeping at it.

comment 7y ago · link · parent

When does it stop being a fad?

comment 7y ago · link · parent

Classic hacker news. Ask for technical advice, get called incompetent.

21.

Show HN: A visualisation of the live Bitcoin transaction rate(bitcoinrain.io ↗)

5 points · by inersha · 8y ago · 1 comment

22.

How to create a Bitcoin transaction from scratch(youtube.com ↗)

3 points · by inersha · 8y ago · discuss

comment 8y ago · link · parent

Looks cool, thanks.

24.

Ask HN: Do you play games between programming?

2 points · by inersha · 8y ago · 2 comments

comment 8y ago · link · parent

I'm making a website for beginners: http://learnmeabitcoin.com/

I'm trying to make it as easy as possible to understand (and work with) bitcoin data.