awesome-huff

Huff toolkit

A curated collection of resources and tools for developing optimized smart contracts in the Huff programming language

A curated list of resources for Huff language

GitHub

308 stars
7 watching
28 forks
last commit: over 2 years ago
Linked from 1 awesome list

ethereumevmhuffsmart-contracts

awesome-huff / Join the movement on Twitter

@huff_languageFollow to keep up with the latest news and announcements - notifications on, anon!
@Zac_AztecFollow and , the original creators of Huff
Jet JadejaFollow The young prince of the Huff empire
@vex_0xAnd a few other Huff chads: , , , , , , , , , ,

awesome-huff / Drop a gm in the Discord

Huff discordHuff is still young, but it already has a thriving community. People on the are helpful, friendly, and chill

awesome-huff / Start here

Huff landing pageThe landing page for all things Huff. Here you can find links to , , and
The Huff Docs➸ START HERE ➸ Here you'll find installation guides, reference, tutorials and everything you need to know about Huff. What are you waiting for, anon?
EVM Through HUFFA video walk-through of SimpleStore.huff to get you started
Huff GitHub ListA curated Github list of Huff language resources, libraries, tools, and more by

awesome-huff / Official huff-language Github repo

huff-rs595almost 2 years agoYou'll be installing this, the new compiler built in Rust, developed by the community and recently released to the public. After installing it's time to start hacking! Write your first Huff function, anon. Start with something simple like adding two numbers. See the tutorials in the docs
huff-project-template212about 2 years agoA template for bootstrapping new Huff projects. Includes Foundry
huffmate442about 2 years agoA library of modern, hyper-optimized, and secure Huff contracts. Currently the gold standard of Huff libraries
vscode-huff49almost 3 years agoA VSCode extension for Huff with syntax highlighting. Also available from within your VSCode in the Extensions Marketplace
huff-examples138over 3 years agoCurrently has wip versions of ERC20 and ERC721
huff-breakage30over 3 years ago💎 💎 A repo containing incorrect, breaking, and footgunned Huff contracts. You'll learn a lot about Huff by reading what not to do in this excellent resource by
huff-debug11over 3 years agoAn easy hevm debug integration for hardhat-huff projects
foundry-huff262about 2 years agoFoundry support for Huff. Includes HuffDeployer to compile and test Huff contracts
hardhat-huff19over 4 years agoHuff support for Hardhat

awesome-huff / Huff tooling

Bytepeep119almost 4 years agoBytepeep is a minimal bytecode peephole optimizer by
Murph117over 3 years agoTranspile EVM bytecode into Huff
vim-huff7almost 4 years agoHuff syntax highlighting for vim
hufflime6about 4 years agoA Sublime Text package for Huff syntax highlighting
huff-stacker50almost 3 years agoAutomatically generate stack comments for huff macros
Huff-Console64almost 3 years agoConsole logging functionality for debugging Huff contracts during development. Allows you log out the stack, memory and calldata easily and dynamically by
Huffpoint34almost 3 years agoCreate breakpoints in your Huff code to use with Foundry debugger

awesome-huff / Huff articles

Testing and deploying Huff contractsHow to write tests and deploy your Huff contracts by
The HyVM — a VM on the EVMA blogpost from the creators of HyVM, a vm that can execute EVM bytecode
Which Smart Contract Language Is Right for Me?A comparison of EVM languages benchmarked against Huff. Written by some gigachads
Entering the Huff EcosystemA deep dive into by the author,
Huff vs Yul for EVM Smart ContractsA well written and informative introduction to Huff by
Huff Challenge #1A walkthrough and solution for the by
Huff Challenge #2A walkthrough and solution for the by
Huff Challenge #3A walkthrough and solution for the by
Huff Challenge #4A walkthrough and solution for the by
Huff Challenge #5A walkthrough and solution for the by
From Zero to NowhereAn informative, 4 part series and deep dive into Huff written by the

awesome-huff / Huff videos

Scraping Bits PodcastHuffoor hosts discussions ranging from gas optimization to security
EVM Through HUFF: DevtooliganDemo of Huff, a walk through of SimpleStore.huff and a bytecode optimization challenge produced by
Devs Do Something - Zac WilliamsonGuest , creator of Huff, talking about Huff, Aztec, Noir, and Building with ZK Tech
Devs Do Something - VexGuest , one of the core contributors to . Lots of great discussion around the history and core concepts of Huff
Devs Do Something - DeGatchiDiscussion with on topics including reverse engineering and MEV
Devs Do Something - devtooliganDiscussion of Huff, Audits, & Following Curiosity with
Huff Basics - OpenZeppelinA 2020 introduction to Huff by OpenZeppelin. This discusses the original version of Huff created by
The Bytecode - philogyGuest , meth-weth code walkthrough

awesome-huff / Projects using Huff in the wild

HyVM252over 2 years agoRun arbitrary code on the EVM, part of
Weierstrudel110about 7 years agoThis is the project that Huff was written for (written for the original version of Huff) and is used by the

awesome-huff / Huff projects you can learn from and contribute to

huffmate442about 2 years agoA library of modern, hyper-optimized, and secure Huff contracts. Currently the gold standard of Huff libraries
8-bit-array12over 4 years agoAn implementation of an array in huff. It can store up to 32 8-bit values in a single storage slot
TSOwnable-huff16about 4 years agoAn Ownable Implementation using Two-Step Transfer Pattern written by
huffbound36about 4 years agoA Soulbound token contract implementation using Huff by
huff-clones27about 4 years agoRewrite of clones-with-immutable-args in Huff
erc721h46about 3 years agoGas optimized version of ERC721A in Huff
huff-ethernaut-magic-number7about 4 years agoEthernaut MagicNumber Solver
huff-goo-issuance34almost 4 years agoGOO(Gradual Ownership Optimization) issuance implementation using Huff by
huff-safe13over 3 years agoSafe multi-sig rewritten in huff
grim-reaper102over 2 years agoGas optimized liquidation bot for Aave V3 in Huff
huff-learning12about 4 years agoSome math and other functions implemented in Huff
huff-math24over 2 years ago👷🚧 Implementation of basic math operations using Huff by
huff-merkle12about 4 years agoMerkle distributor written in Huff
proxies22over 3 years agoA few Ethereum delegate-call proxies written in raw bytecode via Huff
quicksort-huff10about 3 years agoDsSort implemented in Huff
huff-snark-verifier126about 4 years agoGenerate an optimized Groth16 SNARK verification smart contract for use on EVM-based blockchains
huff-tools21about 4 years agoA WIP set of tools for use with the huff language. Contains useful SafeMath functions by
huff-vrgda41about 4 years agoHuff Implementation of VRGDAs
meth-weth143over 2 years ago👷🚧 WETH implementation in Huff by
doppelganger36over 3 years agoHuff smart contracts for deploying arbitrary bytecode to deterministic CREATE2 addresses
hufflove9over 3 years agoRewrite of commonly used contracts by
huff-binarySearch2over 3 years agoBinary Search implemented in Huff
huff-single-byte-dispatcher10over 3 years agoA jumptable-based function dispatcher in Huff by
Damn-Vulnerable-DeFi-V3-CTF25over 3 years agoDamn Vulnerable DeFi solutions with Huff
Ethernaut-CTF36over 3 years agoEthernaut solutions with Huff
Yul2HuffSimple tool to convert Yul expressions to Huff
huff-puzzles379about 2 years agoLearn Huff in increments by solving puzzles that start easy and get harder by
SaltMiner39about 3 years agoA utility for finding the salt for a CREATE2 address for a UniV4 Hook
Secp256k1-huff5almost 3 years agoSecp256k1 elliptic curve library written in Huff by
MinimalAccount42about 3 years agoFirst (and most optimized) ERC-4337 smart contract account written in Huff
HuffBits7almost 3 years agoA library for performing bitwise manipulations of data written in Huff by
HorseRiders8about 2 years agoA Complex Math and Fast Fourier Transform library in Huff made by folks at
Uniswap-V2-Huff110over 2 years agoUniswap V2 Pair contract and it's libraries Written in Huff Language by
Secp256r1/P256-Verifier-Huff26almost 3 years agoOptimized Secp256r1/P256 Verifier Huff Implementation by
Zyclone75almost 3 years agoOptimized token mixer for Ethereum utilizing zkSNARKs. 500% cheaper than Tornado cash by , and
UniswapX-Filler29about 3 years agoAn Optimized UniswapX Filler contract written in Huff language by
Optimized-MiMC-Sponge-Hash12about 3 years agoAn optimized implementation of the MiMC Sponge hash algorithm written in huff language by
Huffs18about 3 years agoImplementation of popular (and unpopular) solidity contracts and libraries in Huff Language by
Dynamic-Huffidity31about 3 years agoHuffidity (Appending huff bytecode to solidity runtime code and jumping to it for efficient computation), but let's you jump back to Solidity runtime execution from Huff runtime execution restrictions by
MiMC-Hash-Huffidity10about 3 years agoUsing Dynamic Huffidity to embed MiMCSponge Hash bytecode by tornado cash to a solidity contract by
ERC7399-Huff-Reference1about 3 years agoERC7399 Flash Loans Huff Reference Implementation by
Bit Magic Speedrun21almost 4 years agoBit manipulation tricks and techniques

awesome-huff / We heard you like ERC20 implementations

huffmate ERC20442about 2 years agoThis is the current gold standard of Huff ERC20 (includes EIP-2612 Permit) and passing all tests
erc20-huffAn ERC20 with Foundry tests
huff-pg6about 5 years agoAn ERC20 implementation with SafeMath
huff-examples-ERC20138over 3 years agoCurrently has wip versions of ERC20 and ERC721
Solmate ERC2028about 4 years agoERC20 implemented on Huff fully complete with all functionality

awesome-huff / Know your roots, anon

AztecProtocol/huff233over 6 years agoThis is the original version of Huff, developed by the team
Weierstrudel110about 7 years agoThis is the project that Huff was written for. Good luck with that math, anon
Oliver13about 7 years agoAn elliptic curve point multiplication on the Baby-JubJub curve also developed by the team
huffc260about 4 years agoThe rewrite in Typescript that was deprecated on 4-Jul-2022

awesome-huff / Advanced EVM articles

EVM Deep Dives: The Path to Shadowy SuperA great series by with a very deep dive into the evm
DeGatchi articlesLots of alpha from , check out and
Jean Cavalerra - All About...Jean goes super deep on a lot of topics - must read for anyone serious about low-level EVM

awesome-huff / EVM opcodes

evm.codes WITH HUFF PLAYGROUNDThis is a fork of evm.codes with Huff language support in the playground. Prototype, practice, and learn Huff with real time feedback and interactive debugger
evm.codesThe ultimate resource for evm opcodes. The playground will soon have Huff support!
evm-puzzles821about 3 years ago10 puzzles to get you thinking like an evm
more-evm-puzzles172almost 3 years ago10 more puzzles!

awesome-huff / Huff honorable mentions

0xleastw00d mentions Huff on Andy Li podcast
https://www.alchemy.com/dapps/huff-vm
https://www.devpill.me/docs/smart-contract-development/specialized-languages/#huff
https://golden.com/wiki/Huff-R9YXP8
https://tokeninsight.com/en/news/evm-programming-language-huff-officially-released

Backlinks from these awesome lists:

More related projects: