4 ms·
Surely they verify the PoW, otherwise it would be trivial to create a long chain and attack them.
by lappa 11y ago
Surely they verify the PoW, otherwise it would be trivial to create a long chain and attack them.
- sysk 11y agoIndeed. I was also surprised to find this out given how popular Electrum is. The code is here: https://github.com/spesmilo/electrum/blob/master/lib/blockchain.py#L56 https://github.com/spesmilo/electrum/blob/master/lib/blockch... and https://github.com/spesmilo/electrum/blob/master/lib/blockchain.py#L88 https://github.com/spesmilo/electrum/blob/master/lib/blockch... One could run a modified Electrum server that sends a long chain at low difficulty and double spend Electrum users.
- Pr0methean 11y agoI read that generating that chain would be really cheap and simple too -- you just run a non-pool miner disconnected from the Internet and with an accelerated clock.