|
|
@ -18,7 +18,7 @@ |
|
|
|
* @author Alex Leverington <nessence@gmail.com> |
|
|
|
* @date 2014 |
|
|
|
* |
|
|
|
* Ethereum-specific data structures & algorithms. |
|
|
|
* Shared EC classes and functions. |
|
|
|
*/ |
|
|
|
|
|
|
|
#pragma once |
|
|
@ -61,8 +61,11 @@ class ECKeyPair |
|
|
|
{ |
|
|
|
public: |
|
|
|
static ECKeyPair create(); |
|
|
|
CryptoPP::DL_PublicKey_EC<CryptoPP::ECP> pub() { return m_pub; } // deprecate
|
|
|
|
CryptoPP::DL_PrivateKey_EC<CryptoPP::ECP> sec() { return m_sec; } // deprecate
|
|
|
|
|
|
|
|
/// deprecate
|
|
|
|
CryptoPP::DL_PublicKey_EC<CryptoPP::ECP> pub() { return m_pub; } |
|
|
|
/// deprecate
|
|
|
|
CryptoPP::DL_PrivateKey_EC<CryptoPP::ECP> sec() { return m_sec; } |
|
|
|
|
|
|
|
private: |
|
|
|
ECKeyPair() {} |
|
|
@ -70,9 +73,5 @@ private: |
|
|
|
CryptoPP::DL_PrivateKey_EC<CryptoPP::ECP> m_sec; |
|
|
|
}; |
|
|
|
|
|
|
|
//class ECDHE;
|
|
|
|
//bytes ECSign(KeyPair, bytesConstRef);
|
|
|
|
//bool ECVerify(Public, bytesConstRef);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|