Skip to content

Commit

Permalink
finish readme
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Oct 22, 2024
1 parent 9ab9718 commit 8da13b1
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,52 @@ Hardhat is a powerful tool designed to empower users to test and validate the pe
## Installation

To install Hardhat, run the following commands:

```bash
git clone https://github.com/somatic-labs/hardhat
cd hardhat
go install ./...
```



## Usage

Hardhat comes with pre-configured mainnet settings available in the `configurations` folder. To get started:

1. Ensure you have a file named `seedphrase` containing your seed phrase.
2. *(Optional)* Set up your own node with a larger mempool (e.g., 10 GB) that accepts a higher number of transactions (e.g., 50,000).
3. Edit the `nodes.toml` file to include your RPC URLs and adjust any other necessary settings.
4. Run `hardhat` in the same directory as your `nodes.toml` and `seedphrase` files.

This will initiate the testing suite with your specified configurations.

## Important Notes

- **Responsible Use**: Hardhat is designed for use on test networks and should be used responsibly. Ensure you have proper authorization before testing on any network you do not own or operate.
- **Valid Transactions Only**: The tool operates within the bounds of valid transactions explicitly supported by the chains it tests.
- **Reporting Issues**: For questions about Hardhat's capabilities or to report potential security issues, please contact the project maintainers through the appropriate channels listed in this repository.

## Background

Hardhat was developed to enhance the testing capabilities for Cosmos-based blockchains after identifying areas where additional testing tools were needed. By simulating various scenarios, Hardhat helps developers and users alike to better understand the limits and robustness of their chains.

### Specific Tests Include:

- **Banana King Exploit Testing**: Initially reported in 2022, this test ensures that chains are secure against known exploits.
- **P2P Storms Testing**: Reported in 2021 and observed in networks like Luna Classic (2022) and Stride (2023), this test evaluates the chain's ability to handle network stress.

## Outcomes

The release of Hardhat has contributed to:

- **Improved Awareness**: Highlighting potential vulnerabilities and encouraging proactive improvements in network security.
- **Enhanced Security Measures**: Prompting fixes for issues like P2P storms after thorough testing and community engagement.

Additional information is available at [faddat/fasf-report](https://github.com/faddat/fasf-report).

## Contributions and Feedback

We welcome contributions from the community to enhance Hardhat's features and capabilities. If you'd like to contribute or have feedback, please open an issue or submit a pull request on GitHub.

---

0 comments on commit 8da13b1

Please sign in to comment.