Fabcoin Core  0.16.2
P2P Digital Currency
Namespaces | Functions
CommonJS.cpp File Reference
#include "CommonJS.h"
Include dependency graph for CommonJS.cpp:

Go to the source code of this file.

Namespaces

 dev
 Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Originally by RenĂ© Nyffenegger.
 
 dev::eth
 

Functions

std::string dev::prettyU256 (u256 _n, bool _abridged=true)
 Convert u256 into user-readable string. Returns int/hex value of 64 bits int, hex of 160 bits FixedHash. As a fallback try to handle input as h256. More...
 
BlockNumber dev::eth::jsToBlockNumber (std::string const &_js)
 Convert to a block number, a bit like jsToInt, except that it correctly recognises "pending" and "latest". More...