Skip to content

Instantly share code, notes, and snippets.

View wschwab's full-sized avatar
🚀

William Schwab wschwab

🚀
View GitHub Profile
@wschwab
wschwab / ceremony-contributions.md
Created July 10, 2026 13:00
Privacy Pools V2 Trusted Setup Ceremony — wschwab contribution record (27/27 circuits)

Privacy Pools V2 Trusted Setup Ceremony — Contribution Record

Ceremony: https://ceremony.privacypools.com Contributor: wschwab (github:31592931) Date: 2026-07-10 Circuits: 27/27 completed

Contributions

| # | Circuit | Contribution Index | Contribution Hash (h_k) |

@wschwab
wschwab / template.md
Last active July 2, 2026 12:05
Agentic PR Template

Description

Model/Harness

  • Model/Version (e.g. GPT 5.5):
  • Harness/Version (e.g. codex-cli 0.142.3):

Prompt

@wschwab
wschwab / installReth.sh
Created October 23, 2023 18:12
Fresh Reth install (use after installLighthouse)
# use at your own risk since I'm not very experienced at this
# ASSUMING YOU ARE ROOT
# This script assumes prior usage of the Lighthouse install script
# It assumes that you've already created the user and activated the firewall, etc.
# Install needed stuff and useful stuff
apt update && apt install -y git build-essential curl libclang-dev pkg-config
@wschwab
wschwab / mevBot.etk
Created January 18, 2023 13:08
etk disassembly of 0xCDa3D75A1a247Bf3fA9efd0727db54d7Cf0C90C2
0: calldatasize
1: iszero
2: push2 0x006c
5: jumpi
6: push1 0x00 # https://www.4byte.directory/signatures/?bytes4_signature=0x00000000
8: dup1
9: dup1
a: calldataload
b: push1 0xe0
@wschwab
wschwab / installErigon.sh
Last active October 18, 2023 16:56
Fresh Erigon install (includes Go installation)
# modified from https://gist.github.com/quickchase/c3d0c53213b16af6b9e4c509eb94fc4b
# use at your own risk since I'm not very experienced at this
# ASSUMING YOU ARE ROOT
# This script assumes prior usage of the Lighthouse install script
# It assumes that you've already created the user and activated the firewall, etc.
# Install needed stuff and useful stuff
apt update && apt install -y git build-essential
@wschwab
wschwab / installLighthouse.sh
Last active October 18, 2023 16:58
Fresh Lighthouse install
# modified from https://gist.github.com/quickchase/0a1145ba42ffa414fd06f27234a50eac
# use at your own risk since I am not very experienced at this
# ASSUMING YOU ARE ROOT
# Install needed stuff
apt update && apt install -y wget ufw bash-completion htop net-tools
# Turn on a firewall, open the peering port
ufw allow ssh
@wschwab
wschwab / installIpfs.sh
Last active October 31, 2023 20:44
Fresh IPFS install
# work in progress/untested - use at your own risk
# ASSUMES ROOT
# installs
apt update && apt install wget ufw
# setup user
USERNAME=ipfs
adduser --system --group ${USERNAME}
@wschwab
wschwab / MappingTest.sol
Created June 22, 2022 16:40
contract for testing if mapping key type affects gas cost (smaple tests included)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
/**
* INSTRUCTIONS:
* make sure you have a gas profiler set up
* you'll also need BitMaps from OpenZeppelin
* run a test/script that hits the functions and profiles gas
* there's a typescript file with Hardhat tests included
*/
@wschwab
wschwab / ZeroXa57.sol
Last active October 31, 2022 17:25
Rough reconstruciton of the source code for the contract at 0xa57Bd00134B2850B2a1c55860c9e9ea100fDd6CF on eth mainnet
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
// current thinking is that the original was compiled on 0.5.0 or 0.5.1
// after seeing significant code reuse from DSProxy, assumptions have been made
// the presence of cache() and setCache() imply usage of DSProxyCache
interface DSProxyCache {
function read(bytes memory _code) external view returns (address);
@wschwab
wschwab / contracts...Interview.sol
Last active May 30, 2022 13:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
struct GLOBALS {
uint256 PRICE;
uint256 MAX_PER_ADDRESS;
address OWNER;