Bitcoin Forum
September 16, 2019, 01:10:34 AM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is this correct?  (Read 147 times)
RawDog
Legendary
*
Offline Offline

Activity: 1554
Merit: 1020



View Profile WWW
February 24, 2018, 03:23:41 PM
 #1

Is the relationship between public key and private key the same for Ethereum and Bitcoin?  

ie if you convert a Base58Check to hex will it function as the public key / Ethereum address?

If not, what is the relationship between priv/pub keys in Ethereum? 

*Image Removed* *Expletive Removed*  *Obsenity Removed*
What's going on - Slavetards?!!!
Watch my videos: https://www.youtube.com/watch?v=oE43M1Z8Iew  1FuckYouc6zrtHbnqcHdhrSVhcxgpJgfds
1568596234
Hero Member
*
Offline Offline

Posts: 1568596234

View Profile Personal Message (Offline)

Ignore
1568596234
Reply with quote  #2

1568596234
Report to moderator
1568596234
Hero Member
*
Offline Offline

Posts: 1568596234

View Profile Personal Message (Offline)

Ignore
1568596234
Reply with quote  #2

1568596234
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Coin-1
Hero Member
*****
Offline Offline

Activity: 756
Merit: 694


CurioInvest [IEO Live]


View Profile
February 24, 2018, 04:21:05 PM
Last edit: September 18, 2018, 02:50:25 AM by Coin-1
Merited by RawDog (10), DooMAD (2), achow101 (1), ETFbitcoin (1), xdrpx (1), Xynerise (1)
 #2

Is the relationship between public key and private key the same for Ethereum and Bitcoin?

Ethereum uses the digital signature ECDSA with secp256k1 curve too, but for generating the ETH-address it uses the "cutted" KECCAK256, not RIPEMD160 function.


Quote
ie if you convert a Base58Check to hex will it function as the public key / Ethereum address?

No. The results of those hash functions differ.


Quote
If not, what is the relationship between priv/pub keys in Ethereum?

How to create a keypair in Ethereum:

# At the first, generate the private and public keys
> openssl ecparam -name secp256k1 -genkey -noout  |  openssl ec -text -noout > Key

# At the second, extract the public key and remove the Elliptic Curve prefix 0x04
> cat Key  |  grep pub -A 5  |  tail -n +2  |  tr -d '\n[:space:]:'  |  sed 's/^04//' > pub

# Then extract the private key and remove the leading zero byte
> cat Key  |  grep priv -A 3  |  tail -n +2  |  tr -d '\n[:space:]:'  |  sed 's/^00//' > priv

# At the end, generate the hash and take the address part
> cat pub  |  keccak-256sum -x -l  |  tr -d ' -' | tail -c 41 > address

Read more here.

As you can see, here is no using RIPEMD160 function.

                       ░▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                         
              ░░▒▓▓███▓▓░░████████████████▓░                                   
          ░▓▓▓▒██████████░ ███████████████████▒                                 
       ░▓██▒░  ███████████▓ ▒███████████████████▓▓▓▓▓████▓▓                     
  ▒▓▓▓██▒     ████████   ▒██░ ██████████▓▒░      █████████████████▓▓▒░         
 ▓█▒░░        ▒▒▓▓▓▓▓▓  ░▒███░ ▓▓▓▒░░   ░░▒▒▓▓███▓▓▓▓▓▓▒▒       ░▒▓███████▓▒░   
 █                                               ░▒▒▓▓██████████▓▒░░░▒▓██████▓█
 █▒  ▒▓▓▒░▒▓█▓▓▓▒▒▒▒░░                                    ░▒▓▓████████▓▓▒░   ▒█
 ░█ ▒████▓  ▒▒░▒▒▓▓▓▓██████████▓▓▓▒▒▒░                            ░▒      ░▓██ 
  ▒███▒▓▓██  ░              ▒░░█████▓▓▓▓██▓▓▒▒▒▒▓▓▓▓▓▒▒░░          ░░ ▓██████▓▓▒
    ▓█▓▓▒▓█▓ ▒              ▒▒▓███  ███████████▓▓█▓░░▒▒░░░  ▓███████▓████████ ▓█
     ░█  ▓██▓▒░░▒▓▓▓▓▓████████▓░   ████▒▒▓▓▓▓██████      ░ ████████▒█████▓▒  ▒█
      ▓▓▓▓████▓▒░░                ▒███ ░███▓█▓▓████░    ▓ ████████▓▓█▓▒    ▓▓▓ 
      ░▓█████▓▒▓██████▓▒░         ▒██▓ ██▒  ██▓▓████    ▒  ░            ▒██▒   
        ░▒         ░▒▓█████████▓▒  ██▒ █▓    ██▒█████    ▒▒▒░░░▒░░░█▓▒▓██▓     
                          ░▒▓█████████ ██    ▓█▒█████▓             ░▓██▓       
                                  ░▒▓█▓ ██ ░▒██░██████▓  ▒▒▒░   ▒▓███▒         
                                      █▓▒▓████░▓████▓ ▓▓▓██████████░           
                                       ▓█▓▓▓▓▓█████▓          ░▒▒               
                                         ▒▓▓██▓▒░                               
                                                                               
|
|

█████████████████████████
██ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██
██ ███████████▀     ██ ██
██ ██████████▌   ▄▄▄██ ██
██ ██████████   ██████ ██
██ ███████          ██ ██
██ ███████▄▄▄   ▄▄▄▄██ ██
██ ██████████   ██████ ██
██ ██████████   ██████ ██
██ ██████████   ██████ ██
██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

█████████████████████████
██ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██
██ █████████████▀█████ ██
██ ███ ▀█████▀      ▀█ ██
██ ███     ▀▀      ▐██ ██
██ ███▌            ███ ██
██ ████▌          ▄███ ██
██ ██████       ▄█████ ██
██ ████▄▄▄▄▄▄▄████████ ██
██ ███████████████████ ██
██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

█████████████████████████
██ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██
██ ████████████▀▀▀████ ██
██ ████████▀▀     ████ ██
██ █████▀    ▄▀  ▐████ ██
██ ██▀     ▄▀    ▐████ ██
██ ████▄▄ █▀     █████ ██
██ ██████ ▄▄█   ▐█████ ██
██ ████████████ ██████ ██
██ ███████████████████ ██
██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
Whitepaper
Ann Thread
Bounty Thread
RawDog
Legendary
*
Offline Offline

Activity: 1554
Merit: 1020



View Profile WWW
February 25, 2018, 08:01:44 AM
 #3


Thanks man - merit for you.

*Image Removed* *Expletive Removed*  *Obsenity Removed*
What's going on - Slavetards?!!!
Watch my videos: https://www.youtube.com/watch?v=oE43M1Z8Iew  1FuckYouc6zrtHbnqcHdhrSVhcxgpJgfds
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!