Skip to content

Instantly share code, notes, and snippets.

View pcaversaccio's full-sized avatar
πŸ’―
Percent Commitment

sudo rm -rf --no-preserve-root / pcaversaccio

πŸ’―
Percent Commitment
View GitHub Profile
@pcaversaccio
pcaversaccio / Decompilation.sol
Last active June 25, 2026 12:48
Dedaub decompilation of Tornado Cash proposal 67: `0x0D0BE561052d4cf419575E35dE4e60163a55185B`.
contract Decompiled {
// Decompiled by library.dedaub.com
// 2026.06.25 11:29 UTC
// Compiled using the solidity compiler version 0.6.12
// Data structures and variables inferred from the use of storage instructions
mapping (address => struct_267) _relayers; // STORAGE[0x0]
uint256 _totalBurned; // STORAGE[0x1]
@pcaversaccio
pcaversaccio / README.md
Last active June 23, 2026 21:29
Review Tornado Cash Proposal 66

Review Tornado Cash Proposal 66

Proposal #66: Update the ETH RPC List and ENS - 50 TORN

Expenditure: 50 TORN

Reason: The current default Blockscout RPC is unusable because it enforces a strict JSON-RPC mode.

The feeOracleV4 and feeOracleV5 calls in tornado-oracles do not include the latest block parameters, causing compatibility issues with strictly compatible RPC endpoints.
@pcaversaccio
pcaversaccio / README.md
Last active June 3, 2026 11:50
Check latest Zcash block.

First, install grpcurl.

To get the latest block:

grpcurl -d '{}' zec.rocks:443 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestTreeState

To get the latest block time in UTC:

@pcaversaccio
pcaversaccio / GUIDE.md
Last active June 19, 2026 13:21
A Verification Guide for CoW TWAPs.

Verify CoW TWAPs

The target contract is ComposableCoW: 0xfdaFc9d1902f4e0b84f65F49f244b32b31013b74.

To invoke a CoW TWAP, we call the function createWithContext:

/**
 * Authorise a single conditional order and store a value from on-chain in the cabinet
 * @param params The parameters of the conditional order
@pcaversaccio
pcaversaccio / README.md
Last active June 26, 2026 15:55
Review Tornado Cash Proposal 65

Review Tornado Cash Proposal 65

Proposal #65: Update ETH RPC List and ENS

Reason: The current ETH RPC List on the UI no longer support historical queries, necessitating an update to the default ETH RPC list.

UI Update Details:

ETH RPCs:  blockscoutRPC,blastRPC,xrpc, gasHawkRPC, lavaRPC,torndaoRPC,sentioRPC,tornadoRPC
@pcaversaccio
pcaversaccio / README.md
Created February 16, 2026 10:59
Ethereum Address Verification (ETHSecurity Badge Application)

0xe9Fa0c8B5d7F79DeC36D3F448B1Ac4cEdedE4e69

@pcaversaccio
pcaversaccio / curl
Last active February 10, 2026 09:34
Protective wrappers for `curl`/`wget` that prevent homograph/IDN attacks by blocking URLs containing non-ASCII characters or Punycode domains.
#!/usr/bin/env bash
set -Eeuo pipefail
RED=$'\033[1;31m'
YELLOW=$'\033[1;33m'
RESET=$'\033[0m'
for arg in "$@"; do
# Reject any non-ASCII byte.
if LC_ALL=C printf "%s" "$arg" | grep -q "[^ -~]"; then
@pcaversaccio
pcaversaccio / requirements.txt
Last active September 19, 2025 15:05
Ensure a hardware wallet's message signature uses an RFC-6979-compliant nonce for secure, deterministic signing.
mnemonic==0.21
eth_account==0.13.7
@pcaversaccio
pcaversaccio / README.md
Last active October 31, 2025 13:54
A step-by-step guide to deploy a 1-out-of-1 Safe `1.4.1` contract via `CreateX`.

Safe 1.4.1 Deployment via CreateX

Special thanks go to Richard Meissner for feedback and review.

Important

This approach requires a deep understanding of how the Safe contracts and CreateX mechanisms work. The recommended way to deploy a Safe contract remains through the SafeProxyFactory contract.

We will deploy a 1-out-of-1 1.4.1 Safe contract via CreateX.

setup Function

@pcaversaccio
pcaversaccio / recoverooor.vy
Last active June 3, 2025 13:33
Multi-Token Recovery Contract
# pragma version ~=0.4.2
# pragma nonreentrancy off
"""
@title Multi-Token Recovery Contract
@custom:contract-name recoverooor
@license GNU Affero General Public License v3.0 only
@author pcaversaccio
@notice These functions support (batch) recovery of both native assets
and tokens across any standard (e.g., ERC-20, ERC-721, ERC-1155).
When using EIP-7702 (https://eips.ethereum.org/EIPS/eip-7702),