Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argotorg/solidity
/ encodeHash
Function
encodeHash
libsolutil/IpfsHash.cpp:48–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
46
}
47
48
bytes encodeHash(bytes const& _data)
49
{
50
return bytes{0x12, 0x20} + picosha2::hash256(_data);
51
}
52
53
bytes encodeLinkData(bytes const& _data)
54
{
Callers
2
combineLinks
Function · 0.85
ipfsHash
Method · 0.85
Calls
1
hash256
Function · 0.85
Tested by
no test coverage detected