Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argotorg/solidity
/ encodeLinkData
Function
encodeLinkData
libsolutil/IpfsHash.cpp:53–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
}
52
53
bytes encodeLinkData(bytes const& _data)
54
{
55
return bytes{0x12} + varintEncoding(_data.size()) + _data;
56
}
57
58
std::string base58Encode(bytes const& _data)
59
{
Callers
1
combineLinks
Function · 0.85
Calls
2
varintEncoding
Function · 0.85
size
Method · 0.45
Tested by
no test coverage detected