Bitcoin Forum
December 13, 2024, 07:01:45 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the difference between ECKey in bitcoinj and CKey in bitcoin-qt ?  (Read 711 times)
IloveAnonCoin (OP)
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.
Nicolas Dorier
Hero Member
*****
Offline Offline

Activity: 714
Merit: 662


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:  

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