MCPcopy Create free account
hub / github.com/ElementsProject/elements / DestB64ToAddr

Function DestB64ToAddr

src/i2p.cpp:108–112  ·  view source on GitHub ↗

* Derive the .b32.i2p address of an I2P destination (I2P-style Base64). * @param[in] dest I2P destination. * @return the address that corresponds to `dest` * @throw std::runtime_error if conversion fails */

Source from the content-addressed store, hash-verified

106 * @throw std::runtime_error if conversion fails
107 */
108static CNetAddr DestB64ToAddr(const std::string& dest)
109{
110 const Binary& decoded = DecodeI2PBase64(dest);
111 return DestBinToAddr(decoded);
112}
113
114namespace sam {
115

Callers 1

AcceptMethod · 0.85

Calls 2

DecodeI2PBase64Function · 0.85
DestBinToAddrFunction · 0.85

Tested by

no test coverage detected