<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.justus.pw/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Echidna_tricks</id>
	<title>Echidna tricks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.justus.pw/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Echidna_tricks"/>
	<link rel="alternate" type="text/html" href="https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;action=history"/>
	<updated>2026-05-25T02:35:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;diff=83&amp;oldid=prev</id>
		<title>Justus: Justus moved page Echidna Tricks to Echidna tricks: spelling</title>
		<link rel="alternate" type="text/html" href="https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;diff=83&amp;oldid=prev"/>
		<updated>2026-01-30T04:55:09Z</updated>

		<summary type="html">&lt;p&gt;Justus moved page &lt;a href=&quot;/wiki/Echidna_Tricks&quot; class=&quot;mw-redirect&quot; title=&quot;Echidna Tricks&quot;&gt;Echidna Tricks&lt;/a&gt; to &lt;a href=&quot;/wiki/Echidna_tricks&quot; title=&quot;Echidna tricks&quot;&gt;Echidna tricks&lt;/a&gt;: spelling&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:55, 30 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Justus</name></author>
	</entry>
	<entry>
		<id>https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;diff=81&amp;oldid=prev</id>
		<title>Justus: fix grammar</title>
		<link rel="alternate" type="text/html" href="https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;diff=81&amp;oldid=prev"/>
		<updated>2026-01-30T04:35:57Z</updated>

		<summary type="html">&lt;p&gt;fix grammar&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:35, 30 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Compared to code scanners and formal methods, Echidna is good at finding transactions that can trigger &amp;#039;&amp;#039;unintended&amp;#039;&amp;#039; behavior in smart contracts. Since Echidna is a [https://en.wikipedia.org/wiki/Fuzzing#Aware_of_program_structure coverage-guided fuzzer], it’s also good at finding ways to hit the entire code surface of a smart contract.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Compared to code scanners and formal methods, Echidna is good at finding transactions that can trigger &amp;#039;&amp;#039;unintended&amp;#039;&amp;#039; behavior in smart contracts. Since Echidna is a [https://en.wikipedia.org/wiki/Fuzzing#Aware_of_program_structure coverage-guided fuzzer], it’s also good at finding ways to hit the entire code surface of a smart contract.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To test a smart contract with Echidna, you have to define a testing interface that &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;it &lt;/del&gt;can to interact with your contract under test. This interfaces contains either [https://secure-contracts.com/program-analysis/echidna/basic/assertion-checking.html assertions] or [https://secure-contracts.com/program-analysis/echidna/introduction/how-to-test-a-property.html properties]. You can select which kind of test Echidna should perform using the command line flag &amp;lt;code&amp;gt;--test-mode&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To test a smart contract with Echidna, you have to define a testing interface that &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Echidna &lt;/ins&gt;can &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use &lt;/ins&gt;to interact with your contract under test. This interfaces contains either [https://secure-contracts.com/program-analysis/echidna/basic/assertion-checking.html assertions] or [https://secure-contracts.com/program-analysis/echidna/introduction/how-to-test-a-property.html properties]. You can select which kind of test Echidna should perform using the command line flag &amp;lt;code&amp;gt;--test-mode&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;configuration-options&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;configuration-options&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Justus</name></author>
	</entry>
	<entry>
		<id>https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;diff=80&amp;oldid=prev</id>
		<title>Justus: Created page with &quot;Here are some useful tricks for getting the best out of [https://github.com/crytic/echidna Echidna].  Echidna is a fuzzing tool for smart contracts written in [https://docs.soliditylang.org/en/v0.8.30/ Solidity]. Solidity smart contracts primarily work on the [https://ethereum.org/en/ Ethereum] blockchain. Some smart contracts are responsible for managing large amounts of cryptocurrency. With Echidna you can evaluate the security of smart contracts.  Compared to code sca...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.justus.pw/mediawiki/index.php?title=Echidna_tricks&amp;diff=80&amp;oldid=prev"/>
		<updated>2026-01-30T04:30:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Here are some useful tricks for getting the best out of [https://github.com/crytic/echidna Echidna].  Echidna is a fuzzing tool for smart contracts written in [https://docs.soliditylang.org/en/v0.8.30/ Solidity]. Solidity smart contracts primarily work on the [https://ethereum.org/en/ Ethereum] blockchain. Some smart contracts are responsible for managing large amounts of cryptocurrency. With Echidna you can evaluate the security of smart contracts.  Compared to code sca...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here are some useful tricks for getting the best out of [https://github.com/crytic/echidna Echidna].&lt;br /&gt;
&lt;br /&gt;
Echidna is a fuzzing tool for smart contracts written in [https://docs.soliditylang.org/en/v0.8.30/ Solidity]. Solidity smart contracts primarily work on the [https://ethereum.org/en/ Ethereum] blockchain. Some smart contracts are responsible for managing large amounts of cryptocurrency. With Echidna you can evaluate the security of smart contracts.&lt;br /&gt;
&lt;br /&gt;
Compared to code scanners and formal methods, Echidna is good at finding transactions that can trigger &amp;#039;&amp;#039;unintended&amp;#039;&amp;#039; behavior in smart contracts. Since Echidna is a [https://en.wikipedia.org/wiki/Fuzzing#Aware_of_program_structure coverage-guided fuzzer], it’s also good at finding ways to hit the entire code surface of a smart contract.&lt;br /&gt;
&lt;br /&gt;
To test a smart contract with Echidna, you have to define a testing interface that it can to interact with your contract under test. This interfaces contains either [https://secure-contracts.com/program-analysis/echidna/basic/assertion-checking.html assertions] or [https://secure-contracts.com/program-analysis/echidna/introduction/how-to-test-a-property.html properties]. You can select which kind of test Echidna should perform using the command line flag &amp;lt;code&amp;gt;--test-mode&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;configuration-options&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= Configuration options =&lt;br /&gt;
&lt;br /&gt;
Echidna has a lot of [https://secure-contracts.com/program-analysis/echidna/configuration.html configuration options]. Here are some options that I recently used when going through the [https://github.com/crytic/building-secure-contracts/tree/master/program-analysis/echidna Building Secure Contracts Echidna tutorial]:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;testMode&amp;lt;/code&amp;gt;: When working through the tutorials, I’ve only ever used &amp;lt;code&amp;gt;property&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;assertion&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;deployer&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sender&amp;lt;/code&amp;gt;: Set these to the same value to ensure that the same account makes all transactions. &amp;lt;code&amp;gt;deployer&amp;lt;/code&amp;gt; takes a single address, &amp;lt;code&amp;gt;sender&amp;lt;/code&amp;gt; accepts a list of strings.&lt;br /&gt;
* &amp;lt;code&amp;gt;cryticArgs&amp;lt;/code&amp;gt;: Set &amp;lt;code&amp;gt;[&amp;amp;quot;--solc-remaps&amp;amp;quot;, &amp;amp;quot;prefix=target&amp;amp;quot;]&amp;lt;/code&amp;gt; if you have dependencies somewhere else. Example: &amp;lt;code&amp;gt;@openzeppelin=../node_modules/@openzeppelin&amp;lt;/code&amp;gt; if your Node.js modules are in the parent directory.&lt;br /&gt;
* &amp;lt;code&amp;gt;balanceContract&amp;lt;/code&amp;gt;: Give this some Ether so that the contract under test can deploy and fund other contracts.&lt;br /&gt;
* &amp;lt;code&amp;gt;balanceAddr&amp;lt;/code&amp;gt;: Give &amp;lt;code&amp;gt;deployer&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sender&amp;lt;/code&amp;gt; Ether using this setting.&lt;br /&gt;
* &amp;lt;code&amp;gt;shrinkLimit&amp;lt;/code&amp;gt;: Shrinking stops too early? Set the limit to a higher number than the default &amp;lt;code&amp;gt;5000&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;testLimit&amp;lt;/code&amp;gt;: Tests stop too early? Add more iterations using this setting.&lt;br /&gt;
&lt;br /&gt;
Here’s how it can look like when you combine some of these settings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;# Give both the Test contract, as well as the sender 100 Wei&lt;br /&gt;
balanceContract: 100&lt;br /&gt;
balanceAddr: 100&lt;br /&gt;
# Run in assertion mode&lt;br /&gt;
testMode: assertion&lt;br /&gt;
# Let Echidna interact with the public interfaces of all contracts&lt;br /&gt;
allContracts: true&lt;br /&gt;
# You can leave out leading zeros in addresses&lt;br /&gt;
# This address deploys your contract&lt;br /&gt;
deployer: &amp;quot;0x30000&amp;quot;&lt;br /&gt;
# These addresses interact with your contracts&lt;br /&gt;
sender:&lt;br /&gt;
  - &amp;quot;0x10000&amp;quot;&lt;br /&gt;
  - &amp;quot;0x20000&amp;quot;&lt;br /&gt;
  - &amp;quot;0x30000&amp;quot;&lt;br /&gt;
# Don&amp;#039;t let Echidna send Ether to the test contract&lt;br /&gt;
filterBlackList: true&lt;br /&gt;
filterFunctions:&lt;br /&gt;
  - &amp;quot;Test.fallback()&amp;quot;&lt;br /&gt;
cryticArgs:&lt;br /&gt;
  - &amp;quot;--solc-remaps&amp;quot;&lt;br /&gt;
  - &amp;quot;@openzeppelin=../node_modules/@openzeppelin&amp;quot;&lt;br /&gt;
# Run 20 workers in parallel. Adjust to the number of CPU cores&lt;br /&gt;
workers: 20&lt;br /&gt;
# Attempt to shrink an interesting case 10,000 times&lt;br /&gt;
shrinkLimit: 10000&lt;br /&gt;
# Run 1 million tests&lt;br /&gt;
testLimit: 1000000&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When you create your configuration file, you can tell Echidna to use it with the &amp;lt;code&amp;gt;--config&amp;lt;/code&amp;gt; command line flag. Here’s how to run Echidna using the configuration file &amp;lt;code&amp;gt;echidna.yaml&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;echidna --config echidna.yaml --contract Test test.sol&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This assumes your test contract is called &amp;lt;code&amp;gt;Test&amp;lt;/code&amp;gt; and is in a file called &amp;lt;code&amp;gt;test.sol&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;resources&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= Resources =&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/crytic/building-secure-contracts/tree/master Building Secure Contracts]&lt;br /&gt;
* [https://secure-contracts.com/program-analysis/echidna/index.html Echidna tutorial from secure-contracts.com]&lt;br /&gt;
* [https://secure-contracts.com/program-analysis/echidna/configuration.html Echidna Configuration options]&lt;br /&gt;
* [https://ethernaut.openzeppelin.com/ Ethernaut challenge]&lt;/div&gt;</summary>
		<author><name>Justus</name></author>
	</entry>
</feed>