37 inline Public jsToPublic(std::string
const& _s) {
return jsToFixed<sizeof(dev::Public)>(_s); }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
void cleanse()
Securely overwrite the memory.
BlockNumber jsToBlockNumber(std::string const &_js)
Convert to a block number, a bit like jsToInt, except that it correctly recognises "pending" and "lat...
std::string prettyU256(u256 _n, bool _abridged)
Convert u256 into user-readable string. Returns int/hex value of 64 bits int, hex of 160 bits FixedHa...
Address jsToAddress(std::string const &_s)
Leniently convert string to Address (h160). Accepts integers, "0x" prefixing, non-exact length...
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
Public jsToPublic(std::string const &_s)
Leniently convert string to Public (h512). Accepts integers, "0x" prefixing, non-exact length...
Address toAddress(std::string const &_s)
Convert the given string into an address.
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
Secret jsToSecret(std::string const &_s)
Leniently convert string to Secret (h256). Accepts integers, "0x" prefixing, non-exact length...