New wallet system. Still missing unit tests, ledger synchronization,

and SQL code. This uses some of the 'magic' properties of elliptic
curves to create related families of public and private keys.
Wallet encryption is not needed because the private keys do not
need to be stored.
This commit is contained in:
JoelKatz
2011-12-26 18:42:50 -08:00
parent 780f94798e
commit 5cec2e9a11
11 changed files with 477 additions and 242 deletions

View File

@@ -4,7 +4,6 @@
#include <assert.h>
bool NewcoinAddress::SetHash160(const uint160& hash160)
{
SetData(51, &hash160, 20);
@@ -25,7 +24,7 @@ NewcoinAddress::NewcoinAddress()
{
}
NewcoinAddress::NewcoinAddress(uint160& hash160In)
NewcoinAddress::NewcoinAddress(const uint160& hash160In)
{
SetHash160(hash160In);
}
@@ -53,3 +52,7 @@ uint160 NewcoinAddress::GetHash160() const
return hash160;
}
std::string NewcoinAddress::GetString() const
{
return ToString();
}