Bitcoin Forum
May 24, 2024, 09:09:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why MD5 on mulitbit classic?  (Read 711 times)
f___o (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
May 20, 2016, 01:00:42 PM
 #1

Hello,

I hope this is a good place to ask this question. I do security research on some bitcoin wallets. Among them multibit classic and HD. I was wondering why MD5 was used for key stretching in classic. Also, why was/is a fixed number of rounds used? Classic uses 1024 rounds of MD5. HD uses Scrypt with an N value of 16384 and some more bitcoin specific things.

"I just felt like it" is a perfectly fine answer.
jim6181
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
May 23, 2016, 01:04:19 PM
Last edit: May 25, 2016, 10:30:05 AM by jim6181
 #2

For Classic the default bitcoinj key derivation was used.

For HD we switched to Scrypt because we thought the algorithm was superior, and 16,384 rounds was the version used in the Scrypt description paper so we thought it was OK to use.  There are various different salts used in HD so that the same wallet words used for different wallet types (Trezor wallet, soft wallet) would not collide.
f___o (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
May 25, 2016, 08:32:24 AM
 #3

For Classic the default bitcoinj key derivation was used.

For HD we switched to Scrypt because we thought the algorithm was superior, and 16,384 rounds was the version used in the Scrypt description paper so we thought it was OK to use.  There are various different salts used in HD so that the same wallet words used for different wallet types (Trezor walet, soft wallet) would not collide.

Thanks, that was helpful. I was surprised that not more wallets use scrypt. Bitcoin-core has some code in place to deploy scrypt in the future though.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!