mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-03-13 05:41:11 +00:00
handle EdDSA addresses
This commit is contained in:
parent
c0f3ac6b72
commit
e8364fc666
@ -723,8 +723,8 @@ bool CNetAddr::IsTor() const
|
|||||||
|
|
||||||
bool CNetAddr::IsNativeI2P() const
|
bool CNetAddr::IsNativeI2P() const
|
||||||
{
|
{
|
||||||
static const unsigned char pchAAAA[] = {'A','A','A','A'};
|
static const unsigned char pchAAA[] = {'A','A','A','='}; // EdDSA, TODO:
|
||||||
return (memcmp(i2pDest + NATIVE_I2P_DESTINATION_SIZE - sizeof(pchAAAA), pchAAAA, sizeof(pchAAAA)) == 0);
|
return (memcmp(i2pDest + NATIVE_I2P_DESTINATION_SIZE - sizeof(pchAAA), pchAAA, sizeof(pchAAA)) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CNetAddr::GetI2PDestination() const
|
std::string CNetAddr::GetI2PDestination() const
|
||||||
|
@ -17,7 +17,7 @@ extern int nConnectTimeout;
|
|||||||
#undef SetPort
|
#undef SetPort
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NATIVE_I2P_DESTINATION_SIZE 516
|
#define NATIVE_I2P_DESTINATION_SIZE 522
|
||||||
#define NATIVE_I2P_B32ADDR_SIZE 60
|
#define NATIVE_I2P_B32ADDR_SIZE 60
|
||||||
#define NATIVE_I2P_NET_STRING "i2p"
|
#define NATIVE_I2P_NET_STRING "i2p"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user