Files
xahaud/NewcoinAddress.h
JoelKatz e9ae645e3b Transaction Infrastructure Work:
Raw account class (address + public key)
Account State class (account + balance + ledgers valid)
Raw Hanko class
Low-level tranasaction class
Small wallet and key bits
Misc updates to the protocol.
Protocol addition to allow code to wait for replies, but that may not be a good idea.
2011-11-11 14:13:25 -08:00

29 lines
664 B
C++

#ifndef __NEWCOIN_ADDRESS__
#define __NEWCOIN_ADDRESS__
#include "base58.h"
// TODO: https://en.bitcoin.it/wiki/Address
// TODO: Why do we need steps 5 and 6? why not just use a checksum function to get the checksum?
class NewcoinAddress : public CBase58Data
{
public:
NewcoinAddress();
NewcoinAddress(uint160& hash160In);
NewcoinAddress(const std::vector<unsigned char>& vchPubKey);
NewcoinAddress(const std::string& strAddress);
NewcoinAddress(const char* pszAddress);
bool SetHash160(const uint160& hash160);
bool SetPubKey(const std::vector<unsigned char>& vchPubKey);
bool IsValid();
uint160 GetHash160();
std::string GetString();
};
#endif