Skip to content

Instantly share code, notes, and snippets.

View adria0's full-sized avatar
💭
crustaceanin'

adria0.eth adria0

💭
crustaceanin'
View GitHub Profile
@adria0
adria0 / EccMulTest.sol
Created December 11, 2023 08:34
EccMulTest
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract EccMulTest {
struct Point {
uint x;
uint y;
}
@adria0
adria0 / rln-trusted-setup-ceremony_attestation.log
Created August 24, 2023 09:54
Attestation for RLN Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm adria0-5526331 and I have contributed to the RLN Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (rln-withdraw)
Contributor # 52
Contribution Hash: 0c5a8bef 0428b3ba 1becf247 fee64728
a1dbc988 c2b8efd6 05c2214f 0104c0ac
04cc58cd 8d17a440 c156669a f9fa9a99
a5967551 90ffce73 4809b2f9 3c7c7c96
@adria0
adria0 / maci-v1-trusted-setup-ceremony_attestation.log
Created August 24, 2023 09:42
Attestation for Maci v1 Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm adria0-5526331 and I have contributed to the Maci v1 Trusted Setup Ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (processmessages_6-8-2-3)
Contributor # 5
Contribution Hash: 5df98a64 a772a4e8 5632cf1f 117187c6
bb22f5fa 6b648f0f 9e6d01a2 d2497682
760f8c9e 8b3e210b 2694e1ee 7dc9c10a
463e89d4 bfe32aad 1058c082 20a933eb
@adria0
adria0 / test_sar_result.py
Created January 3, 2023 16:29
test_sar_result
58 def test_sar_result():
59 test_vectors = [
60 (0x0000000000000000000000000000000000000000000000000000000000000001,0x00,0x0000000000000000000000000000000000000000000000000000000000000001),
61 (0x0000000000000000000000000000000000000000000000000000000000000001,0x01,0x0000000000000000000000000000000000000000000000000000000000000000),
62 (0x8000000000000000000000000000000000000000000000000000000000000000,0x01,0xc000000000000000000000000000000000000000000000000000000000000000),
63 (0x8000000000000000000000000000000000000000000000000000000000000000,0xff,0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff),
64 (0x8000000000000000000000000000000000000000000000000000000000000000,0x0100,0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff),
65 (0x8000000000000000000000000000000000000000000000000000000000000000,0x0101,0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff),
66 (0xfffffffffffffffffffffffffffff
@adria0
adria0 / d0bf9ed234e2795dcc3c972670344e08b2babde4.txt
Last active August 12, 2022 12:08
State tests results for d0bf9ed234e2795dcc3c972670344e08b2babde4
branch commit d0bf9ed234e2795dcc3c972670344e08b2babde4
Please, see https://raw.githubusercontent.com/adria0/zkevm-circuits/evm-testvectors/evm-testvectors/result.cache for the detailed results.
00PANI => Paniked tests
01FAIL => Failed tests (there's a mismatch in the storage, mainly)
03SKIP => Skipped tests due it takes a lot of gas, or has unimplemented features. Please see TOP25 at the end
04succ => Tests that gone :+1:
+------------------------------------------------------------------------+----------+----------+------------+-----------+
@adria0
adria0 / attestation.txt
Created April 4, 2022 08:40
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 12
Hash: 74ffde48 c32853d0 21c6d96b 7dc75ced
da17da6d 4becb89d 1d76499c d2ff989a
1fb31e09 fc15c0d2 c673e221 150dd092
150076a9 cb31dc7b abc60922 7b3d33ff
@adria0
adria0 / attestation.txt
Created September 3, 2021 11:25
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 96
Hash: 3e6ca8b5 d54aa80b 48e5980f d2163547
247792c8 07894029 1e96ce48 3b833ec2
b8ac9496 2532eefa 9df338d7 9fb9f9c1
8b1ee442 85edc169 944cbc56 ed65b9c7
@adria0
adria0 / Makefile
Created January 7, 2021 09:40 — forked from jwasinger/Makefile
Instructions for benchmarking Geth-evm384
all:
clang++ -O3 bench.cpp
@adria0
adria0 / KZG10.py
Created December 15, 2020 18:23 — forked from HarryR/KZG10.py
Implementation of PolyCommit_{DL} from "Constant-Size Commitments to Polynomials and Their Applications" https://www.cypherpunks.ca/~iang/pubs/PolyCommit-AsiaCrypt.pdf
from typing import List, NamedTuple, Tuple, Union
from math import ceil, log2
from random import randint
from functools import reduce
import operator
from py_ecc import bn128 as curve
"""
Implementation of PolyCommit_{DL} from:
@adria0
adria0 / journal_test1.rs
Last active October 21, 2020 15:56
JournalTest1
use std::collections::HashSet;
use std::rc::Rc;
use std::cell::RefCell;
struct AccessList(Rc<AccessListInt>);
struct AccessListInt {
v : RefCell<Option<HashSet<usize>>>,
prev: Option<Rc<AccessListInt>>
}