aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2011-07-05 20:53:43 +0200
committerPieter Wuille <[email protected]>2011-07-17 12:09:14 +0200
commit2ffba736e9102d016b96c2e5de2ce7757e612667 (patch)
treefb96acfec05aa767cb3ba2df9b93569f2a6c04db /src/key.h
parentget rid of mapPubKeys (diff)
downloaddiscoin-2ffba736e9102d016b96c2e5de2ce7757e612667.tar.xz
discoin-2ffba736e9102d016b96c2e5de2ce7757e612667.zip
Use CBitcoinAddress instead of string/uint160
Instead of conversion functions between pubkey/uint160/address in base58.h, have a fully fledged class CBitcoinAddress (CAddress was already taken) to represent addresses.
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/key.h b/src/key.h
index c43e4ee23..3c14cfedd 100644
--- a/src/key.h
+++ b/src/key.h
@@ -220,6 +220,11 @@ public:
return false;
return true;
}
+
+ CBitcoinAddress GetAddress() const
+ {
+ return CBitcoinAddress(GetPubKey());
+ }
};
#endif