Electrum 3.0 with SegWit Support Released

in bitcoin •  7 years ago 

Electrum, our personal favorite Bitcoin desktop wallet, just released the latest version of their software! Version 3.0 (dubbed "Uncanny Valley") includes SegWit Support (with all-new SegWit addresses) and lock-timed transactions (a method to stop fork replay attacks). Read on to learn all about it!

Image result for modern background copy.jpg

SegWit Support

Electrum 3.0 includes full support for Segregated Witness. You can now create your own SegWit-supported wallet using the New tool (Wallet Creation Wizard), with addresses that look like this:

image.png

These bech32 addresses fully support SegWit, following the standard set by BIP 173. However, BIP 173 is still a draft, so Electrum adds:

You should keep a non-segwit wallet in order to be
able to receive bitcoins during the transition period. If BIP173
ends up being rejected or substantially modified, your wallet
may have to be restored from seed. This will not affect funds
sent to bech32 addresses, and it will not affect the capacity of
Electrum to spend these funds.

Segregated Witness provides access to faster confirmations, lower fees, and other exciting features. Try using SegWit transactions and addresses with Electrum!

Automatic Fork Replay Protection

Electrum 3.0 now includes lock-timed transactions, such that the lock time field is automatically set to the current block. This provides for a level of automatic replay protection and helps deter against replay attacks, if you choose to use it properly.

How does this work?

Let's say that Bitcoin (BTC) is the main chain (with the highest hashpower) and is currently at block 600,000 while Bitcoin Example (BEX, just an example) is a fork without replay protection, which is currently at block 599,500 (500 blocks behind BTC).

Lock-times in transactions basically tell miners that the transaction cannot be included in the blockchain until a certain block has been reached.

For example, if I broadcast a transaction on the BTC blockchain with a lock-time of 600,100 it can't be confirmed for another 100 blocks, since the current block number is 600,000.

Here are the steps to transact BTC without worrying about replay attacks on the BEX chain, even though BEX doesn't have replay protection:

  1. Create a transaction T with a lock-time of 600,000 (Electrum will automatically apply the locktime)
  2. Spend T, and wait for it to be confirmed on the blockchain
  3. Immediately after T is confirmed, create a transaction U that spends the same coins from T on the BEX blockchain (or the other chain). U should send the coins to another address (probably owned by yourself)
  4. If U gets confirmed on the BEX blockchain before block 600,000, your coins are replay-protected.

The reason that this is highly likely to work is because BTC is so ahead of BEX (500 blocks). Transaction T cannot be spent on BEX for another 500 blocks due to this gap, and we take advantage of that by getting in another transaction on BEX before a replay of T can catch up.

Conclusions

Electrum 3.0 is an exciting update to the premier Bitcoin light client, and the addition of SegWit provides access to more opportunities for users. You can download the latest version here, and if you aren't sure what Electrum is or how it works, make sure to check out this series on why Electrum is the best light Bitcoin wallet!


Thanks for reading,
@mooncryption

image sources: all, cover, locktime

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Calling @originalworks :)
img credz: pixabay.com
Nice, you got a 84.0% @glitterbooster upgoat, thanks to @mooncryption
Want a boost? Minnowbooster's got your back!

The @OriginalWorks bot has determined this post by @mooncryption to be original material and upvoted(2%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

Thanks for the info! Was looking for a wallet that supported it.

This post received a 1.0% upvote from @randowhale thanks to @mooncryption! For more information, click here!

Resteemed by @resteembot! Good Luck!
Curious?
The @resteembot's introduction post
The @reblogger's introduction post
Get more from @resteembot with the #resteembotsentme initiative
Check out the great posts I already resteemed.

This wonderful post has received a bellyrub 0.87 % upvote from @bellyrub.

For those interested on using Electrum as a cold wallet, check out the Bitkey project https://github.com/estevaocm/bitkey