Skip to content

This UI calculates the Safe transaction hashes computing both the domain and messages hashes

License

Notifications You must be signed in to change notification settings

BootNodeDev/safe-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Multisig Transaction Hashes

This repository contains both a Bash script and a web interface for calculating Safe transaction hashes. It helps users verify transaction hashes before signing them on hardware wallets by retrieving transaction details from the Safe transaction service API and computing the domain and message hashes using the EIP-712 standard.

The project is a fork of @pcaversaccio bash script, full details of such bash script README can be found at its original reository.

The UI also offers a second methodo to manually input transaction details instead of recovering them from Safe's API.

Disclaimer

This is a fork of a script by @pcaversaccio that adds a user interface. It has not been subject to any security assessment and is therefore not suitable for production use. Any use of the tool is at your own risk in accordance with our Terms of Service.

This tool is intended to be used as a proof of concept and feedback and contributions are welcome. While there are few dependencies, you should always do your own investigation and run the tool locally where possible.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (version 14 or later)
  • npm (usually comes with Node.js)

Run locally

  1. Clone the repository:

    git clone https://github.com/openzeppelin/safe-utils.git
    cd safe-utils
  2. Set up the safe_hashes.sh script:

    • Ensure the safe_hashes.sh script is located in the parent directory of the app.
    • Make the script executable:
      chmod +x ../safe_hashes.sh
  3. Install dependencies:

    cd app/
    npm install
  4. Run the development server:

    npm run dev
  5. Open http://localhost:3000 with your browser to see the result.

Usage

For quick and easy access, you can use the hosted version of Safe Hash Preview at https://safeutils.openzeppelin.com/. This version is ready to use without any setup required.

How to use the application:

  • Choose the calculation method, defaults to Manual Input. Alternative you can use Safe's API which requires less input.
  • Select a network from the dropdown menu.
  • Enter the Safe address.
  • Fill the rest of the data according to your selected method.
  • Click "Calculate Hashes" to view the results.

Learn More

To learn more about the technologies used in this project, check out the following resources:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

This UI calculates the Safe transaction hashes computing both the domain and messages hashes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.1%
  • Shell 19.5%
  • CSS 1.4%
  • Other 1.0%