Skip to content

Instantly share code, notes, and snippets.

@hansmrtn
hansmrtn / world-id-protocol_attestation.log
Created February 14, 2026 00:08
Attestation for world-id-protocol MPC Phase 2 Trusted Setup ceremony
Hey, I'm hansmrtn-282867 and I have contributed to the world-id-protocol MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (oprfkeygenproof13)
Contributor # 44
Contribution Hash: bbeece6c 7c1fbad9 02444ce0 c63c7abc
20c3bc58 c8362b89 6881490d f88cdf73
d624daf9 62b44ef9 94767307 ef96aa7a
25738357 e143c30d eb179743 476e79dd
#!/bin/bash
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <start_block> <end_block> [rpc_url]"
echo "Example: $0 1000000 1000100 http://localhost:8545"
exit 1
fi
start_block=$1
end_block=$2
from concurrent.futures import ThreadPoolExecutor, as_completed
import requests
import seaborn as sns
import pandas as pd
from web3 import Web3
# Set up Ethereum connection
infura_url = 'https://sepolia.infura.io/v3/<YOUR_INFRUA_KEY>'
web3 = Web3(Web3.HTTPProvider(infura_url))
@hansmrtn
hansmrtn / risc-zero-groth16-verifier_attestation.log
Created December 3, 2023 00:13
Attestation for RISC Zero Groth16 Verifier MPC Phase 2 Trusted Setup ceremony
Hey, I'm hmrtn-282867 and I have contributed to the RISC Zero Groth16 Verifier MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (verify)
Contributor # 6
Contribution Hash: 241408c0 d162ea38 68b4fd1a 6a7c99bc
f57f66e6 8be90102 5ca1a69c c9bf0d27
46dc0217 38b9b74d 03c8d5f5 05dc372b
3fff685e bd72094c 6f7612e9 8909d7b6
// encrypt some data with public key cyrpto
// decrypt with private key
import { decrypt, encrypt } from "sjcl";
import { utils } from "ethers";
const ballot = {
citizen: "0x0000000000000000000000000000000000000000",
ballot: {
hash1_of_project: 0,
@hansmrtn
hansmrtn / merkle_tree.go
Last active March 31, 2023 11:16
Just a little merkle
package main
import (
"crypto/sha1"
"encoding/hex"
"fmt"
"strings"
)
func main() {
@hansmrtn
hansmrtn / gist:e63622ca4955f1ffb2d4194afbbc9498
Created August 30, 2021 23:35
moonshot-collective-ascii-art
/**
..
,*.
.**,
,***.
.,. ,***,
.**, *****.
.****. ,*****,
.******, ,******,
.*******. .********, .
@hansmrtn
hansmrtn / nowcast.R
Last active May 14, 2021 18:15
EPA's Nowcast Algorithm implemented in R
#' Calculate NowCast
#'
#' As described
#' \href{https://usepa.servicenowservices.com/airnow?id=kb_article_view&sys_id=fed0037b1b62545040a1a7dbe54bcbd4}{here}.
#'
#' @param x A numeric vector.
#' @param n An integer window length.
#' @param threshold A weight factor threshold.
#'
#' @return A numeric vector of length(x)