MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DestB64ToAddr

Function DestB64ToAddr

src/i2p.cpp:112–116  ·  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

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

Callers 1

AcceptMethod · 0.85

Calls 2

DecodeI2PBase64Function · 0.85
DestBinToAddrFunction · 0.85

Tested by

no test coverage detected