diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-03-26 16:48:23 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-03-26 16:48:23 +0200 |
commit | 6b8de05d0a6696dff4b7dccec5b74889f3cdc486 (patch) | |
tree | 123b892a842e3a99342cc4806b4a833b2a635b52 /src/base58.h | |
parent | 01a196e08db49d83cf6c5abd8a799c56dcfef503 (diff) |
Begin doxygen-compatible comments
Diffstat (limited to 'src/base58.h')
-rw-r--r-- | src/base58.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/base58.h b/src/base58.h index 71168cfaca..755e34c418 100644 --- a/src/base58.h +++ b/src/base58.h @@ -169,7 +169,7 @@ inline bool DecodeBase58Check(const std::string& str, std::vector<unsigned char> -// Base class for all base58-encoded data +/** Base class for all base58-encoded data */ class CBase58Data { protected: @@ -252,11 +252,12 @@ public: bool operator> (const CBase58Data& b58) const { return CompareTo(b58) > 0; } }; -// base58-encoded bitcoin addresses -// Public-key-hash-addresses have version 0 (or 192 testnet) -// The data vector contains RIPEMD160(SHA256(pubkey)), where pubkey is the serialized public key -// Script-hash-addresses have version 5 (or 196 testnet) -// The data vector contains RIPEMD160(SHA256(cscript)), where cscript is the serialized redemption script +/** base58-encoded bitcoin addresses. + * Public-key-hash-addresses have version 0 (or 111 testnet). + * The data vector contains RIPEMD160(SHA256(pubkey)), where pubkey is the serialized public key. + * Script-hash-addresses have version 5 (or 196 testnet). + * The data vector contains RIPEMD160(SHA256(cscript)), where cscript is the serialized redemption script. + */ class CBitcoinAddress : public CBase58Data { public: @@ -356,6 +357,7 @@ public: } }; +/** A base58-encoded secret key */ class CBitcoinSecret : public CBase58Data { public: |