Skip to content

Instantly share code, notes, and snippets.

@Stebalien
Stebalien / f0-f2-mapping.md
Created October 9, 2024 23:52
f0<->f2 mapping from an execution trace

To get an f0<->f2 mapping for all newly created smart contracts:

  1. Walk the execution trace.
  2. Ignore sub-trees of the execution trace where the exit code (.MsgRct.ExitCode) is non-zero (i.e., the sub-call reverted).
  3. If the sub-trace's .Msg.To is f01 (init actor), the exit code is zero (success), and the method number is 2 (Exec) or 3 (Exec4): decode .MsgRct.Return as ExecReturn (specifically, as a cbor-encoded list of two byte-strings where the first byte-string is the f0 address of the newly created actor and the second byte-string is the f2 address of the newly created actor.
@Stebalien
Stebalien / gnark-bench.txt
Created September 18, 2024 19:18
Gnark Bench
goos: linux
goarch: amd64
pkg: go.dedis.ch/kyber/v4/pairing/bls12381
cpu: AMD Ryzen 7 7840U w/ Radeon 780M Graphics
BenchmarkPairingSeparate/bls12-381.G1-16 849 1338257 ns/op
BenchmarkPairingSeparate/bls12-381.G1#01-16 499 2392080 ns/op
BenchmarkPairingSeparate/bls12-381.G1#02-16 1154 1024133 ns/op
BenchmarkPairingInv/bls12-381.G1-16 879 1351603 ns/op
BenchmarkPairingInv/bls12-381.G1#01-16 500 2378678 ns/op
BenchmarkPairingInv/bls12-381.G1#02-16 1159 1017159 ns/op
@Stebalien
Stebalien / evm.patch
Created October 31, 2022 16:31
Diff between next & master, after merge
diff --git a/.github/actions/rust-cargo-run/action.yml b/.github/actions/rust-cargo-run/action.yml
index ee2aa8cf..643b872d 100644
--- a/.github/actions/rust-cargo-run/action.yml
+++ b/.github/actions/rust-cargo-run/action.yml
@@ -20,7 +20,7 @@ inputs:
cache_name:
description: The name of the cache to save/restore
required: true
- default: v2-test
+ default: test
This file has been truncated, but you can view the full file.
=== RUN TestGossipsubOpportunisticGrafting
panic: test timed out after 10m0s
goroutine 245543 [running]:
testing.(*M).startAlarm.func1()
/opt/hostedtoolcache/go/1.16.3/x64/src/testing/testing.go:1700 +0x11f
created by time.goFunc
/opt/hostedtoolcache/go/1.16.3/x64/src/time/sleep.go:180 +0x52
goroutine 1 [chan receive, 1 minutes]:
diff --git a/PKGBUILD b/PKGBUILD
index b626f00..5df4ae4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,25 +31,22 @@ md5sums=('SKIP'
prepare() {
cd "$srcdir/$_pkgname"
- local patch97=0
-
─────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: PKGBUILD
─────────────────────────────────────────────────────────────────────────────────────────────────────────
@ PKGBUILD:34 @ md5sums=('SKIP'

prepare() {
cd "$srcdir/$_pkgname"
 local patch97=0
 
 local RED='\033[0;31m'
2020-08-27T10:44:48.909-0700 WARN pubsub [email protected]/gossipsub.go:1062 dropping message to peer 12D3KooWBrNLwvTsP7m9bkYd6aLyHntjTdr8gBQ9Zx7CNTSpp1Wt: queue full
2020-08-27T10:44:49.321-0700 WARN pubsub [email protected]/gossipsub.go:1062 dropping message to peer 12D3KooWBrNLwvTsP7m9bkYd6aLyHntjTdr8gBQ9Zx7CNTSpp1Wt: queue full
2020-08-27T10:44:49.326-0700 WARN pubsub [email protected]/gossipsub.go:1062 dropping message to peer 12D3KooWBrNLwvTsP7m9bkYd6aLyHntjTdr8gBQ9Zx7CNTSpp1Wt: queue full
2020-08-27T10:44:49.331-0700 WARN pubsub [email protected]/gossipsub.go:1062 dropping message to peer 12D3KooWBrNLwvTsP7m9bkYd6aLyHntjTdr8gBQ9Zx7CNTSpp1Wt: queue full
2020-08-27T10:44:49.335-0700 WARN pubsub [email protected]/gossipsub.go:1062 dropping message to peer 12D3KooWBrNLwvTsP7m9bkYd6aLyHntjTdr8gBQ9Zx7CNTSpp1Wt: queue full
2020-08-27T10:44:49.340-0700 WARN pubsub [email protected]/gossipsub.go:1062 dropping message to peer 12D3KooWBrNLwvTsP7m9bkYd6aLyHntjTdr8gBQ9Zx7CNTSpp1W
2020-08-27T10:42:23.598-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 6.004277ms
2020-08-27T10:42:23.632-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 6.294504ms
2020-08-27T10:42:23.821-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 5.892563ms
2020-08-27T10:42:23.826-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 5.75903ms
2020-08-27T10:42:23.855-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 6.202436ms
2020-08-27T10:42:23.875-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 9.459521ms
2020-08-27T10:42:23.957-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 6.080095ms
2020-08-27T10:42:24.002-0700 DEBUG pubsub [email protected]/validation.go:421 validation done; took 1.453669ms
2020-08-27T10:42:24.002-0700 DEBUG pubsub [email protected]/validation.go:342 messa
2020-08-26T16:41:34.749-0700 INFO main lotus/daemon.go:166 lotus repo: /home/steb/.lotus
2020-08-26T16:41:34.750-0700 INFO build [email protected]/paramfetch.go:138 Parameter file /var/tmp/filecoin-proof-parameters/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-0170db1f394b35d995252228ee359194b13199d259380541dc529fb0099096b0.vk is ok
2020-08-26T16:41:34.750-0700 INFO build [email protected]/paramfetch.go:138 Parameter file /var/tmp/filecoin-proof-parameters/v28-stacked-proof-of-replication-merkletree-poseidon_hasher-8-0-0-sha256_hasher-ecd683648512ab1765faa2a5f14bab48f676e633467f0aa8aad4b55dcb0652bb.vk is ok
2020-08-26T16:41:34.750-0700 INFO build [email protected]/paramfetch.go:138 Parameter file /var/tmp/filecoin-proof-parameters/v28-proof-of-spacetime-fallback-merkletree-poseidon_hasher-8-0-0-5294475db5237a2e83c3e52fd6c2b03859a1831d45ed08c4f35dbf9a803165a9.vk is ok
2020-08-26T16:41:34.750-07
@Stebalien
Stebalien / go-ipfs-api-0.5.0.md
Created March 6, 2020 21:45
WIP docs for 0.5.0 API
title weight menu
HTTP API
20
reference
parent
api