Bitcoin Forum
May 06, 2024, 05:44:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is this correct?  (Read 229 times)
RawDog (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1026



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
1715017447
Hero Member
*
Offline Offline

Posts: 1715017447

View Profile Personal Message (Offline)

Ignore
1715017447
Reply with quote  #2

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

Posts: 1715017447

View Profile Personal Message (Offline)

Ignore
1715017447
Reply with quote  #2

1715017447
Report to moderator
1715017447
Hero Member
*
Offline Offline

Posts: 1715017447

View Profile Personal Message (Offline)

Ignore
1715017447
Reply with quote  #2

1715017447
Report to moderator
1715017447
Hero Member
*
Offline Offline

Posts: 1715017447

View Profile Personal Message (Offline)

Ignore
1715017447
Reply with quote  #2

1715017447
Report to moderator
Coin-1
Legendary
*
Offline Offline

Activity: 2436
Merit: 2174



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), ABCbits (4), DooMAD (2), achow101 (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.
RawDog (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1026



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:  

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