rodrigoherrerai / huff-safe

Safe multi-sig rewritten in Huff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HUFF-SAFE

Image 1 Image 2

Safe multi-sig rewrite in Huff

Installation

forge install

Testing

forge test

There are 3 type of test suites:

  1. Unit test: testing each function
  2. Differential tests: tests safe.huff against safe.sol
  3. Fuzzing: Tries to break certain assumptions by providing various inputs

NOTE

This code is only for educational purposes

Todo

The code is around 85-90% complete, there are a few things missing:

  • Guard Manager
  • Emit events in missing functions
  • Accept contract signatures (EIP1271)
  • Accept eth_sign flow (v > 30)
  • Handle re-payment in execTransaction
  • Fallback manager && TokenCallbackHandler

About

Safe multi-sig rewritten in Huff


Languages

Language:Solidity 99.7%Language:Makefile 0.1%Language:Shell 0.1%Language:Nix 0.0%