MCPcopy 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
48bytes encodeHash(bytes const& _data)
49{
50 return bytes{0x12, 0x20} + picosha2::hash256(_data);
51}
52
53bytes encodeLinkData(bytes const& _data)
54{

Callers 2

combineLinksFunction · 0.85
ipfsHashMethod · 0.85

Calls 1

hash256Function · 0.85

Tested by

no test coverage detected