diff options
| author | Pieter Wuille <[email protected]> | 2012-05-14 19:07:52 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-24 19:58:12 +0200 |
| commit | fd61d6f5068cf92d34569862b4225f177049a4f0 (patch) | |
| tree | 5556094bda3a7162535b9352b67016e620bb9a77 /src/base58.h | |
| parent | More CScript unit tests. (diff) | |
| download | discoin-fd61d6f5068cf92d34569862b4225f177049a4f0.tar.xz discoin-fd61d6f5068cf92d34569862b4225f177049a4f0.zip | |
Encapsulate public keys in CPubKey
Diffstat (limited to 'src/base58.h')
| -rw-r--r-- | src/base58.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base58.h b/src/base58.h index a4ff35c4a..26d8c5f9e 100644 --- a/src/base58.h +++ b/src/base58.h @@ -275,9 +275,9 @@ public: return true; } - void SetPubKey(const std::vector<unsigned char>& vchPubKey) + void SetPubKey(const CPubKey& vchPubKey) { - SetHash160(Hash160(vchPubKey)); + SetHash160(vchPubKey.GetID()); } bool SetScriptHash160(const uint160& hash160) @@ -333,7 +333,7 @@ public: SetHash160(hash160In); } - CBitcoinAddress(const std::vector<unsigned char>& vchPubKey) + CBitcoinAddress(const CPubKey& vchPubKey) { SetPubKey(vchPubKey); } |