Skip to content

Instantly share code, notes, and snippets.

I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 188
Hash: debc6a81 aeb94af2 48a9d261 28e0f328
e30989a9 bf871055 e2bc0652 5cfd514d
95e7e788 f283c75b 106a2b6a 40f3c505
1e050a8f 482ca402 efd0be26 43377827
@benjaminion
benjaminion / Command line
Last active January 18, 2022 11:00
Running the Eth2 spec
> git clone https://github.com/ethereum/consensus-specs.git
> python3 -m venv consensus-specs/
> cd consensus-specs/
> source bin/activate
> python --version
Python 3.8.10
> python setup.py install
... tons of output ...
> make install_test
... some failures, then it installs cytoolz and sorts itself out ...
@benjaminion
benjaminion / pubkey_from_bytes.txt
Created December 10, 2021 09:13
Stacktraces for BlstPublicKey.fromBytes() when deserialising the same public key
java.lang.Exception
at tech.pegasys.teku.bls.impl.blst.BlstPublicKey.fromBytes(BlstPublicKey.java:46)
at tech.pegasys.teku.bls.impl.blst.BlstBLS12381.publicKeyFromCompressed(BlstBLS12381.java:84)
at tech.pegasys.teku.bls.impl.blst.BlstBLS12381.publicKeyFromCompressed(BlstBLS12381.java:38)
at tech.pegasys.teku.bls.BLSPublicKey.lambda$new$2(BLSPublicKey.java:115)
at com.google.common.base.Suppliers$NonSeriali
@benjaminion
benjaminion / attestation.txt
Created September 3, 2021 11:23
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 95
Hash: 8826e68d 0a4450f0 3a54ae9f 58aeaa96
ad0a5ac1 792b4987 b98a6228 c66b362e
5c43bbfb 4425b5e1 15db9e9a 005149be
3825914b 75c98563 2dbc4ddc db1d8142
This file has been truncated, but you can view the full file.
{
"data": [
{
"slot": "828928",
"index": "0",
"validators": [
"92882",
"41576",
"91828",
"26461",
@benjaminion
benjaminion / convert.sh
Last active December 23, 2021 15:15
Convert Eth2 EIP-2335 scrypt keystores to pbkdf2 keystores
## Converts Eth2 EIP-2335 scrypt keystores to pbkdf2 keystores
#
# Requires ethdo (https://github.com/wealdtech/ethdo) and jq.
#
# Tested with ethdo v1.7.3 and Teku v0.12.5+508-g03d75b2
#
# Notes:
# - I'd definitely do this off-line and air-gapped.
# - The files in INPUT_DIR and PASS_DIR are not modified.
# - Take care of directory and file permissions. This script assumes it can
@benjaminion
benjaminion / summary.txt
Created November 6, 2020 11:40
Key derivation from mnemonic
Mnemonic:
wave manual book soup hotel deposit chapter coast deliver start enable mechanic topple suggest sail spider finish vanish increase fit sauce range among betray
Keystore generated by the deposit CLI tool (eth2deposit-cli-9310de0-windows-amd64 - latest, mainnet version):
{"crypto": {"kdf": {"function": "scrypt", "params": {"dklen": 32, "n": 262144, "r": 8, "p": 1, "salt": "d13b388adb2a60431a029c86e3466213e3baad483654dc129d9d9619b5d6d0e5"}, "message": ""}, "checksum": {"function": "sha256", "params": {}, "message": "1b64e1c73dc409c00a2a47463bac487df08f98230f5e52f3b25930d5778c7a54"}, "cipher": {"function": "aes-128-ctr", "params": {"iv": "09cecc36de0e72ca345b16d1391e38c5"}, "message": "52371a8d867463e4382ef8cb95756ed3d5d77f99944358b825022f9f104fcfca"}}, "description": "", "pubkey": "a53dc41745a335a76a8a90bdc7290dc12497f2353fab0ad76b245e796b4738142746a097fd4cc5382eda5a1aec48e609", "path": "m/12381/3600/0/0/0", "uuid": "b234102b-0d00-4892-b013-57334312cca8", "version": 4}
Keystore generated by https://
@benjaminion
benjaminion / eth1_data_votes.json
Created August 15, 2020 09:58
Medalla Eth1 Data Votes
This file has been truncated, but you can view the full file.
[
[
{
"deposit_root": "0x53d90f778f975dcca3f30e072b5c1a85cfd7a1b977b78620d94f143d06432f9b",
"deposit_count": "22637",
"block_hash": "0x560f09b440e530d7fee7ed01c5449fe318de36621234e4fc8dcc49a48332af19"
},
{
"deposit_root": "0x53d90f778f975dcca3f30e072b5c1a85cfd7a1b977b78620d94f143d06432f9b",
"deposit_count": "22637",
@benjaminion
benjaminion / issue_2191.log
Created June 24, 2020 10:21
DEBUG logs for issue 2191
2020-06-22 12:52:36.823+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Sync Event *** Current slot: 191063, Head slot: 179842, Connected peers: 28
2020-06-22 12:52:48.066+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Sync Event *** Current slot: 191064, Head slot: 179842, Connected peers: 28
2020-06-22 12:53:00.060+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Sync Event *** Current slot: 191065, Head slot: 179842, Connected peers: 28
2020-06-22 12:53:12.240+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Sync Event *** Current slot: 191066, Head slot: 179842, Connected peers: 28
2020-06-22 12:53:24.550+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Sync Event *** Current slot: 191067, Head slot: 179842, Connected peers: 28
2020-06-22 12:53:37.444+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Sync Event *** Current slot: 191068, Head slot: 179842, Connected peers: 28
2020-06-22 12:53:48.267+00:00 | TimeTickChanne
@benjaminion
benjaminion / issue_2200.log
Created June 24, 2020 09:56
Logs for issue 2200
2020-06-23 00:37:28.065+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Slot Event *** Slot: 194587, Block: ... empty, Epoch: 6080, Finalized checkpoint: 6075, Finalized root: 727339..facb, Peers: 22
2020-06-23 00:37:40.065+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Slot Event *** Slot: 194588, Block: ... empty, Epoch: 6080, Finalized checkpoint: 6075, Finalized root: 727339..facb, Peers: 22
2020-06-23 00:37:52.066+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Slot Event *** Slot: 194589, Block: ... empty, Epoch: 6080, Finalized checkpoint: 6075, Finalized root: 727339..facb, Peers: 22
2020-06-23 00:38:04.064+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Slot Event *** Slot: 194590, Block: 71c907..aab2, Epoch: 6080, Finalized checkpoint: 6075, Finalized root: 727339..facb, Peers: 22
2020-06-23 00:38:16.066+00:00 | TimeTickChannel-0 | INFO | teku-event-log | Slot Event *** Slot: 194591, Block: ... empty, Epoch: 6080, Finali