mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add strHex for uint160.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
#include <openssl/dh.h>
|
||||
|
||||
#include "uint256.h"
|
||||
|
||||
#define nothing() do {} while (0)
|
||||
|
||||
#ifndef MAX
|
||||
@@ -60,6 +62,10 @@ inline std::string strHex(const std::vector<unsigned char> vchData) {
|
||||
return strHex(vchData.begin(), vchData.size());
|
||||
}
|
||||
|
||||
inline const std::string strHex(const uint160& ui) {
|
||||
return strHex(ui.begin(), ui.size());
|
||||
}
|
||||
|
||||
int charUnHex(char cDigit);
|
||||
void strUnHex(std::string& strDst, const std::string& strSrc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user