Bitcoin Forum
June 25, 2024, 09:10:47 AM *
News: Latest Bitcoin Core release: 27.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 690 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: 661


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!