awesome-huff

A curated list of resources for Huff language

GitHub

307 stars
7 watching
28 forks
last commit: 9 months ago
Linked from 1 awesome list

ethereumevmhuffsmart-contracts

awesome-huff / Join the movement on Twitter

@huff_language Follow to keep up with the latest news and announcements - notifications on, anon!
@Zac_Aztec Follow and , the original creators of Huff
Jet Jadeja Follow The young prince of the Huff empire
@vex_0x And a few other Huff chads: , , , , , , , , , ,

awesome-huff / Drop a gm in the Discord

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

awesome-huff / Start here

Huff landing page The 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 HUFF A video walk-through of SimpleStore.huff to get you started
Huff GitHub List A curated Github list of Huff language resources, libraries, tools, and more by

awesome-huff / Official huff-language Github repo

huff-rs 589 6 months ago You'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-template 212 about 2 months ago A template for bootstrapping new Huff projects. Includes Foundry
huffmate 437 3 months ago A library of modern, hyper-optimized, and secure Huff contracts. Currently the gold standard of Huff libraries
vscode-huff 49 11 months ago A VSCode extension for Huff with syntax highlighting. Also available from within your VSCode in the Extensions Marketplace
huff-examples 138 over 1 year ago Currently has wip versions of ERC20 and ERC721
huff-breakage 30 over 1 year 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-debug 11 over 1 year ago An easy hevm debug integration for hardhat-huff projects
foundry-huff 258 3 months ago Foundry support for Huff. Includes HuffDeployer to compile and test Huff contracts
hardhat-huff 19 over 2 years ago Huff support for Hardhat

awesome-huff / Huff tooling

Bytepeep 119 almost 2 years ago Bytepeep is a minimal bytecode peephole optimizer by
Murph 117 over 1 year ago Transpile EVM bytecode into Huff
vim-huff 7 almost 2 years ago Huff syntax highlighting for vim
hufflime 6 about 2 years ago A Sublime Text package for Huff syntax highlighting
huff-stacker 50 about 1 year ago Automatically generate stack comments for huff macros
Huff-Console 63 11 months ago Console logging functionality for debugging Huff contracts during development. Allows you log out the stack, memory and calldata easily and dynamically by
Huffpoint 34 11 months ago Create breakpoints in your Huff code to use with Foundry debugger

awesome-huff / Huff articles

Testing and deploying Huff contracts How to write tests and deploy your Huff contracts by
The HyVM — a VM on the EVM A 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 Ecosystem A deep dive into by the author,
Huff vs Yul for EVM Smart Contracts A well written and informative introduction to Huff by
Huff Challenge #1 A walkthrough and solution for the by
Huff Challenge #2 A walkthrough and solution for the by
Huff Challenge #3 A walkthrough and solution for the by
Huff Challenge #4 A walkthrough and solution for the by
Huff Challenge #5 A walkthrough and solution for the by
From Zero to Nowhere An informative, 4 part series and deep dive into Huff written by the

awesome-huff / Huff videos

Scraping Bits Podcast Huffoor hosts discussions ranging from gas optimization to security
EVM Through HUFF: Devtooligan Demo of Huff, a walk through of SimpleStore.huff and a bytecode optimization challenge produced by
Devs Do Something - Zac Williamson Guest , creator of Huff, talking about Huff, Aztec, Noir, and Building with ZK Tech
Devs Do Something - Vex Guest , one of the core contributors to . Lots of great discussion around the history and core concepts of Huff
Devs Do Something - DeGatchi Discussion with on topics including reverse engineering and MEV
Devs Do Something - devtooligan Discussion of Huff, Audits, & Following Curiosity with
Huff Basics - OpenZeppelin A 2020 introduction to Huff by OpenZeppelin. This discusses the original version of Huff created by
The Bytecode - philogy Guest , meth-weth code walkthrough

awesome-huff / Projects using Huff in the wild

HyVM 249 8 months ago Run arbitrary code on the EVM, part of
Weierstrudel 111 about 5 years ago This 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

huffmate 437 3 months ago A library of modern, hyper-optimized, and secure Huff contracts. Currently the gold standard of Huff libraries
8-bit-array 12 over 2 years ago An implementation of an array in huff. It can store up to 32 8-bit values in a single storage slot
TSOwnable-huff 16 about 2 years ago An Ownable Implementation using Two-Step Transfer Pattern written by
huffbound 36 about 2 years ago A Soulbound token contract implementation using Huff by
huff-clones 27 about 2 years ago Rewrite of clones-with-immutable-args in Huff
erc721h 46 about 1 year ago Gas optimized version of ERC721A in Huff
huff-ethernaut-magic-number 7 about 2 years ago Ethernaut MagicNumber Solver
huff-goo-issuance 34 about 2 years ago GOO(Gradual Ownership Optimization) issuance implementation using Huff by
huff-safe 13 over 1 year ago Safe multi-sig rewritten in huff
grim-reaper 98 4 months ago Gas optimized liquidation bot for Aave V3 in Huff
huff-learning 12 about 2 years ago Some math and other functions implemented in Huff
huff-math 24 5 months ago 👷🚧 Implementation of basic math operations using Huff by
huff-merkle 12 about 2 years ago Merkle distributor written in Huff
proxies 22 almost 2 years ago A few Ethereum delegate-call proxies written in raw bytecode via Huff
quicksort-huff 10 over 1 year ago DsSort implemented in Huff
huff-snark-verifier 126 about 2 years ago Generate an optimized Groth16 SNARK verification smart contract for use on EVM-based blockchains
huff-tools 21 over 2 years ago A WIP set of tools for use with the huff language. Contains useful SafeMath functions by
huff-vrgda 41 about 2 years ago Huff Implementation of VRGDAs
meth-weth 137 9 months ago 👷🚧 WETH implementation in Huff by
doppelganger 36 over 1 year ago Huff smart contracts for deploying arbitrary bytecode to deterministic CREATE2 addresses
hufflove 9 over 1 year ago Rewrite of commonly used contracts by
huff-binarySearch 2 over 1 year ago Binary Search implemented in Huff
huff-single-byte-dispatcher 11 over 1 year ago A jumptable-based function dispatcher in Huff by
Damn-Vulnerable-DeFi-V3-CTF 25 over 1 year ago Damn Vulnerable DeFi solutions with Huff
Ethernaut-CTF 36 over 1 year ago Ethernaut solutions with Huff
Yul2Huff Simple tool to convert Yul expressions to Huff
huff-puzzles 370 28 days ago Learn Huff in increments by solving puzzles that start easy and get harder by
SaltMiner 39 about 1 year ago A utility for finding the salt for a CREATE2 address for a UniV4 Hook
Secp256k1-huff 5 12 months ago Secp256k1 elliptic curve library written in Huff by
MinimalAccount 42 about 1 year ago First (and most optimized) ERC-4337 smart contract account written in Huff
HuffBits 6 12 months ago A library for performing bitwise manipulations of data written in Huff by
HorseRiders 8 2 months ago A Complex Math and Fast Fourier Transform library in Huff made by folks at
Uniswap-V2-Huff 108 6 months ago Uniswap V2 Pair contract and it's libraries Written in Huff Language by
Secp256r1/P256-Verifier-Huff 26 10 months ago Optimized Secp256r1/P256 Verifier Huff Implementation by
Zyclone 74 12 months ago Optimized token mixer for Ethereum utilizing zkSNARKs. 500% cheaper than Tornado cash by , and
UniswapX-Filler 30 about 1 year ago An Optimized UniswapX Filler contract written in Huff language by
Optimized-MiMC-Sponge-Hash 12 about 1 year ago An optimized implementation of the MiMC Sponge hash algorithm written in huff language by
Huffs 18 about 1 year ago Implementation of popular (and unpopular) solidity contracts and libraries in Huff Language by
Dynamic-Huffidity 31 about 1 year ago Huffidity (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-Huffidity 10 about 1 year ago Using Dynamic Huffidity to embed MiMCSponge Hash bytecode by tornado cash to a solidity contract by
ERC7399-Huff-Reference 1 about 1 year ago ERC7399 Flash Loans Huff Reference Implementation by
Bit Magic Speedrun 21 almost 2 years ago Bit manipulation tricks and techniques

awesome-huff / We heard you like ERC20 implementations

huffmate ERC20 437 3 months ago This is the current gold standard of Huff ERC20 (includes EIP-2612 Permit) and passing all tests
erc20-huff An ERC20 with Foundry tests
huff-pg 6 about 3 years ago An ERC20 implementation with SafeMath
huff-examples-ERC20 138 over 1 year ago Currently has wip versions of ERC20 and ERC721
Solmate ERC20 28 about 2 years ago ERC20 implemented on Huff fully complete with all functionality

awesome-huff / Know your roots, anon

AztecProtocol/huff 232 over 4 years ago This is the original version of Huff, developed by the team
Weierstrudel 111 about 5 years ago This is the project that Huff was written for. Good luck with that math, anon
Oliver 13 about 5 years ago An elliptic curve point multiplication on the Baby-JubJub curve also developed by the team
huffc 261 over 2 years ago The rewrite in Typescript that was deprecated on 4-Jul-2022

awesome-huff / Advanced EVM articles

EVM Deep Dives: The Path to Shadowy Super A great series by with a very deep dive into the evm
DeGatchi articles Lots 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 PLAYGROUND This 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.codes The ultimate resource for evm opcodes. The playground will soon have Huff support!
evm-puzzles 813 about 1 year ago 10 puzzles to get you thinking like an evm
more-evm-puzzles 173 10 months ago 10 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: