Returns true iff @a _hash (hex with 0x prefix) is the Keccak256 hash of the binary data in @a _content.
| 155 | |
| 156 | /// Returns true iff @a _hash (hex with 0x prefix) is the Keccak256 hash of the binary data in @a _content. |
| 157 | bool hashMatchesContent(std::string const& _hash, std::string const& _content) |
| 158 | { |
| 159 | try |
| 160 | { |
| 161 | return util::h256(_hash) == util::keccak256(_content); |
| 162 | } |
| 163 | catch (util::BadHexCharacter const&) |
| 164 | { |
| 165 | return false; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | bool isArtifactRequested(Json const& _outputSelection, std::string const& _artifact, bool _wildcardMatchesExperimental) |
| 170 | { |