Bitcoin ABC 0.30.7
P2P Digital Currency
|
Namespaces | |
namespace | sam |
Classes | |
struct | Connection |
An established connection with another peer. More... | |
Typedefs | |
using | Binary = std::vector< uint8_t > |
Binary data. More... | |
Functions | |
static std::string | SwapBase64 (const std::string &from) |
Swap Standard Base64 <-> I2P Base64. More... | |
static Binary | DecodeI2PBase64 (const std::string &i2p_b64) |
Decode an I2P-style Base64 string. More... | |
static CNetAddr | DestBinToAddr (const Binary &dest) |
Derive the .b32.i2p address of an I2P destination (binary). More... | |
static CNetAddr | DestB64ToAddr (const std::string &dest) |
Derive the .b32.i2p address of an I2P destination (I2P-style Base64). More... | |
using i2p::Binary = typedef std::vector<uint8_t> |
|
static |
|
static |
Derive the .b32.i2p address of an I2P destination (I2P-style Base64).
[in] | dest | I2P destination. |
dest
std::runtime_error | if conversion fails |
Definition at line 107 of file i2p.cpp.
Derive the .b32.i2p address of an I2P destination (binary).
[in] | dest | I2P destination. |
dest
std::runtime_error | if conversion fails |
Definition at line 85 of file i2p.cpp.
|
static |
Swap Standard Base64 <-> I2P Base64.
Standard Base64 uses +
and /
as last two characters of its alphabet. I2P Base64 uses -
and ~
respectively. So it is easy to detect in which one is the input and convert to the other.
[in] | from | Input to convert. |
from
Definition at line 38 of file i2p.cpp.