Skip to content

Instantly share code, notes, and snippets.

View pdyraga's full-sized avatar
🐗

Piotr Dyraga pdyraga

🐗
View GitHub Profile
0x3d018366bf73766434316b951a82df733f3a9a4ff0b47dbf01328784425bcfc8
0x1781dafc768d25c6fb7604ed69968f9779cb89e6c560054369ed8210a7806a1c29a53845a98c6e9e58379353f84859212a2c2f420a37d021c3801df5dec660581c

0x0498b5a912b28763b70a7b6f64862538aea0fca366b56f569b9f006a809e82ac

# FireCapture for planetary image capture:
brew install libusb
Download and install DMG from http://www.firecapture.de/
# INDI driver for guiding
brew tap polakovic/astronomy
brew install polakovic/astronomy/libnova
brew install gsl
@pdyraga
pdyraga / keys
Created October 3, 2019 09:32 — forked from miguelmota/ethereum_keys.sh
Generate Ethereum Private key, Public key, and Address using Bash and OpenSSL
# Generate the private and public keys
openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > key
# Extract the public key and remove the EC prefix 0x04
cat key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub
# Extract the private key and remove the leading zero byte
cat key | grep priv -A 3 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^00//' > priv
# Generate the hash and take the address part
@pdyraga
pdyraga / benchmark.md
Last active May 18, 2022 16:16
Parity benchmarks (24 Sep 2018)

About the benchmarks

The Parity client benchmarks are based on the work of Martin Holst Swende done 21 July 2018 for Constantinopole. The new benchmarks have been done for 2.1.1-beta version released 20 September 2018 as well as for master branch (branch as of 25 Oct - 5a1dc3e) with bn dependency pointing to version before and after the optimalisations by Andre Silva

If we compare pre- and post- benchmarks we see there is a significant performance boost justifying reduction of gas prices for ecmul and ecadd operations. Also, pairing is ~2.82 times faster when we compare Martin's benchmark and version 2.1.1-beta what also suggests that pairing gas cost can be reduced.

Martin's benchmark (21 Jul)

Name Gascost Time (ns) MGas/S Gascost for 10MGas/S Gascost for ECDSA eq

Keybase proof

I hereby claim:

  • I am pdyraga on github.
  • I am piotrd (https://keybase.io/piotrd) on keybase.
  • I have a public key ASCqd6WMV2dHr6ecEQ1PqFvSQaLfrFqNrRo7cT2l0P7Pxwo

To claim this, I am signing this object:

# VARIABLE DESCRIPTIONS:
# survival Survival
#(0 = No; 1 = Yes)
#pclass Passenger Class
#(1 = 1st; 2 = 2nd; 3 = 3rd)
#name Name
#sex Sex
#age Age
#sibsp Number of Siblings/Spouses Aboard
#parch Number of Parents/Children Aboard