From 2ffba736e9102d016b96c2e5de2ce7757e612667 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 5 Jul 2011 20:53:43 +0200 Subject: 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. --- src/key.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/key.h') diff --git a/src/key.h b/src/key.h index c43e4ee235..3c14cfedd5 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 -- cgit v1.2.3