Bitcoin Forum
June 29, 2024, 11:17:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ripple, Ethereum and Bip39 mnemonic  (Read 129 times)
oscar.ordonez (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 20, 2018, 04:42:12 PM
 #1

I generate the address, public key and private key for ripple and ethereum with bip39 using this words "faint hover inherit excuse defy outside loan penalty boil elbow spirit faith cancel tooth invest someone host another lock purpose grit cloth type lion" however when I compare the public key of ethereum generated in https://iancoleman.io/bip39/ its not the same, it is partially the same but not completely.
Generated by me: 0xa7fa54646c129b98a7c84895139c3de7df8602e859bab937fe6bf773a42c2d4ebf551bfaed0dd bf979335b211e6f24c685b8a774d650421140bf20bbf9ce6267
Generated by iancoleman: 0x03a7fa54646c129b98a7c84895139c3de7df8602e859bab937fe6bf773a42c2d4e

The same thing happens with ripple, when I generate the private key its not the same with the one generate in the web site.
Generated by me: 005AF2551FB4D4361A870390EF5D473D72DC526CDB5AF6F6DF92B43FC959CEBC0D
Generated by iancoleman: 5af2551fb4d4361a870390ef5d473d72dc526cdb5af6f6df92b43fc959cebc0d

One last thing, I generate the seed with bip39 library using 24 words but when I generate the 24 words randomly and paste it to the web site it tells me it is an invalid mnemonic.

Could someone help me please?  Sad
starmyc
Full Member
***
Offline Offline

Activity: 198
Merit: 130

Some random software engineer


View Profile
March 20, 2018, 06:04:43 PM
 #2

Generated by me: 0xa7fa54646c129b98a7c84895139c3de7df8602e859bab937fe6bf773a42c2d4ebf551bfaed0dd bf979335b211e6f24c685b8a774d650421140bf20bbf9ce6267
Generated by iancoleman: 0x03a7fa54646c129b98a7c84895139c3de7df8602e859bab937fe6bf773a42c2d4e

It seems that iancoleman is compressing your public key: It was discovered that it was possible to "compress" a ecdsa public key (composed of a X,Y couples of values), but just using the X value, and knowing if Y if even or odd, and adding the 0x02 or 0x03 prefix X. There is documentation about that everywhere on the internet, like on this page https://bitcoin.stackexchange.com/questions/3059/what-is-a-compressed-bitcoin-key.


The same thing happens with ripple, when I generate the private key its not the same with the one generate in the web site.
Generated by me: 005AF2551FB4D4361A870390EF5D473D72DC526CDB5AF6F6DF92B43FC959CEBC0D
Generated by iancoleman: 5af2551fb4d4361a870390ef5d473d72dc526cdb5af6f6df92b43fc959cebc0d

Again, your value is identifical to the other one. You just have a 0x00 prefix for whatever reason.

One last thing, I generate the seed with bip39 library using 24 words but when I generate the 24 words randomly and paste it to the web site it tells me it is an invalid mnemonic.

Would you mind to post an example ? Maybe you're missing a word.

Hi, I'm just some random software engineer.
You can check my projects: Bitcoin & altcoin balances/addresses listing dumps: https://balances.crypto-nerdz.org/
oscar.ordonez (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 20, 2018, 06:56:30 PM
 #3

Would you mind to post an example ? Maybe you're missing a word.

govern almost cook zero dismiss lemon drift knee sight record pioneer above try usual pelican obtain outer father jaguar prison stadium answer anxiety escape
starmyc
Full Member
***
Offline Offline

Activity: 198
Merit: 130

Some random software engineer


View Profile
March 20, 2018, 08:32:44 PM
 #4

Your last word is invalid; It must be part of the "checksum" of the other words, as describe on the BIP: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki#Generating_the_mnemonic.

To generate a correct list (for 24 words), you have to:

  * Pick randomly a 256 bits number (called entropy)
  * Compute its sha256sum, and pick the first 8 bits and concat them to the 256 bits of entropy, resulting to a 264 bits number;
  * For each set of 11 bits, pick the right word, resulting in 24 words.

Did you correctly geenrated your list ?

Hi, I'm just some random software engineer.
You can check my projects: Bitcoin & altcoin balances/addresses listing dumps: https://balances.crypto-nerdz.org/
oscar.ordonez (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 22, 2018, 05:17:09 PM
 #5

Thank you very much!
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!