Bitcoin Forum
September 27, 2018, 10:48:23 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: What is the difference between ECKey in bitcoinj and CKey in bitcoin-qt ?  (Read 596 times)
IloveAnonCoin
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
May 31, 2014, 04:26:58 AM
 #1

I have tried to see the difference between two class, but still think it is almost the same.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538088503
Hero Member
*
Offline Offline

Posts: 1538088503

View Profile Personal Message (Offline)

Ignore
1538088503
Reply with quote  #2

1538088503
Report to moderator
Nicolas Dorier
Hero Member
*****
Offline Offline

Activity: 700
Merit: 501


View Profile
May 31, 2014, 04:24:40 PM
 #2

An ECKey can be both, public or private, this is a thin layer about the EC DSA operations.
CKey is a real private key, one layer about ECKey, and can't represent a public key.
If my memory is good, CPubKey also encapsulate an CECKey.

At least, this is how I implemented it in NBitcoin, and I was inspired by core + BitcoinJ, so it should be what I tell you. Smiley

Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
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!