Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
crustaceanin'

adria0.eth adria0

💭
crustaceanin'
View GitHub Profile
View attestation.txt
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 Jan 7, 2021 — forked from jwasinger/Makefile
Instructions for benchmarking Geth-evm384
View Makefile
all:
clang++ -O3 bench.cpp
@adria0
adria0 / KZG10.py
Created Dec 15, 2020 — 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
View KZG10.py
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:
View journal_test1.rs
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>>
}
@adria0
adria0 / results.md
Last active Sep 29, 2020
EIP2929 diff
View results.md
ok_count=3112
fail_count=423
disjoint_only_in_oe_count=6692 (tests executed by OE that are not present in geth list)
disjoint_only_in_geth_count=32 (tests executed by geth that are not present in oe list)
root_mismatch_count=21 (tests that have different 'want' hash)


Failed 0_2_28000_96.json/Istanbul/0/trie OE:bda0171f373d45a96610d10c3cc9810fa25ff5a73ffc50f45ad1bd550c52584e Geth:883f24c36066b9d8ba29434304f720007c7f557d30940f6f74ad3333330606d7
Failed 0_2_28000_96.json/Istanbul/1/trie OE:bda0171f373d45a96610d10c3cc9810fa25ff5a73ffc50f45ad1bd550c52584e Geth:883f24c36066b9d8ba29434304f720007c7f557d30940f6f74ad3333330606d7
@adria0
adria0 / tsan.log
Last active Jul 8, 2020
oe 3.0.1 RUSTFLAGS=-Zsanitizer=thread cargo build --release --features=final -Zbuild-std --target x86_64-unknown-linux-gnu (nightly)
View tsan.log
2020-07-07 18:05:15 UTC Starting OpenEthereum/v3.0.0-stable-63e2781b2-20200630/x86_64-unknown-linux-gnu/rustc1.46.0-nightly
2020-07-07 18:05:15 UTC Keys path /home/ubuntu/.local/share/openethereum/keys/ethereum
2020-07-07 18:05:15 UTC DB path /home/ubuntu/.local/share/openethereum/chains/ethereum/db/906a34e69aec8c0d
2020-07-07 18:05:15 UTC State DB configuration: fast
2020-07-07 18:05:15 UTC Operating mode: active
2020-07-07 18:05:15 UTC Configured for Ethereum using Ethash engine
2020-07-07 18:05:16 UTC Updater is deprecated and may be removed in a future release. Please see #11696 for details:
https://github.com/openethereum/openethereum/issues/11696
2020-07-07 18:05:16 UTC Removed existing file '/home/ubuntu/.local/share/openethereum/jsonrpc.ipc'.
2020-07-07 18:05:16 UTC Updated conversion rate to Ξ1 = US$239.79 (19858646 wei/gas)
@adria0
adria0 / calc_state_trie.go
Created Apr 14, 2020
openethereum vs go-ethereum state calc snippets
View calc_state_trie.go
type stateTest struct {
db ethdb.Database
state *StateDB
}
func newStateTest() *stateTest {
db := rawdb.NewMemoryDatabase()
sdb, _ := New(common.Hash{}, NewDatabase(db), nil)
return &stateTest{db: db, state: sdb}
}
@adria0
adria0 / output
Created Mar 17, 2020
cargo-folderinfo on openethreum
View output
dump format:
<folder-name> - [<crate-name>] crate-description
< internal dependencies
> external dependencies
- [parity-ethereum] Parity Ethereum client
< cli-signer, client-traits, common-types, engine, ethcore, ethcore-accounts,
< ethcore-blockchain, ethcore-call-contract, ethcore-db, ethcore-light,
< ethcore-miner, ethcore-private-tx, ethcore-secretstore, ethcore-service,
< ethcore-sync, ethkey, ethstore, node-filter, parity-hash-fetch, parity-ipfs-api,
View notes1.md
View gist:07e47c7f7506f826c56f999c32a62c14
use num_bigint::{BigInt, BigUint};
use circom2_parser::ast::SignalType;
use circom2_compiler::algebra::{LC, QEQ};
use circom2_compiler::storage::{Constraints, Signals,Result};
use byteorder::{BigEndian, WriteBytesExt};
use std::fs::File;
use std::io::{Seek, SeekFrom, Write};
use num_traits::identities::One;
use rand::thread_rng;