Skip to content

Instantly share code, notes, and snippets.

View arberiii's full-sized avatar
🏠
Working from home

Arber arberiii

🏠
Working from home
View GitHub Profile
@arberiii
arberiii / main.go
Created December 18, 2019 07:25
ethereum rpc client
package main
import (
"context"
"fmt"
"log"
"time"
"github.com/ethereum/go-ethereum/rpc"
)
@arberiii
arberiii / script.sh
Created January 26, 2020 21:13
Searx instance on OS X
# pull first the searx docker image
# docker pull wonderfall/searx
# then in automator under bash script write this:
export PATH=/usr/local/bin:$PATH;
if (! docker stats --no-stream ); then
open /Applications/Docker.app
while (! docker stats --no-stream ); do
sleep 1
done
fi
@arberiii
arberiii / README.md
Created March 11, 2020 10:52
Verify witness_signature of a block header of Tron block

Block header of Tron block number 200 is

{
	"blockID": "00000000000000c82a54a3bbdc956e1ddebc903f29b8daf28505b56f55a3f87d",
	"block_header": {
		"raw_data": {
			"number": 200,
			"txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000",
			"witness_address": "411661f25387370c9cd3a9a5d97e60ca90f4844e7e",
 "parentHash": "00000000000000c7c8f27726916dfddca3c1c3481eb01da8a08938263674cea4",