Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ IsRFC7343
Method
IsRFC7343
src/netaddress.cpp:398–402 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
396
}
397
398
bool CNetAddr::IsRFC7343() const
399
{
400
return IsIPv6() && HasPrefix(m_addr, std::array<uint8_t, 3>{0x20, 0x01, 0x00}) &&
401
(m_addr[3] & 0xF0) == 0x20;
402
}
403
404
bool CNetAddr::IsHeNet() const
405
{
Callers
2
BOOST_AUTO_TEST_CASE
Function · 0.80
FUZZ_TARGET
Function · 0.80
Calls
1
HasPrefix
Function · 0.85
Tested by
2
BOOST_AUTO_TEST_CASE
Function · 0.64
FUZZ_TARGET
Function · 0.64