Why decentralized?

Because this is how the future looks like, the power will be taken from imagined-organizations and put back into the hands of individuals.

Why meta-learning?

There are two problems in the world, not enough information and too much information. The first one was solved…

Back to my first love


The journey Here is my long journey with Linux and other operating systems: RedHat - 1997 - this is was installed on all university's computers and I did not have my own personal computer at that time Windows 98 - 1998 - bought my own Pentium 166 MHz PC, mostly for StarCraft: Brood War :) Slackware - 2000 - because I was never happy with RPM package manager but I enjoyed the simplicity of Slack IuLiX - 2002 - my own Linux distro based on Linux from scratch and Slackware philosophy Gentoo / Windows XP - 2003 - starting to slip away from Linux, don't know, maybe Gentoo source based distro was too complicated/time consuming for me at that time Windows XP - 2005 - no more dual boots, coincidence or not, this was also the low of my professional career :( Mac - 2008 - Mac era because all cool dudes had moved to Mac and iPhone Arch - 2019 - and back to my first love, should I get a " [Read More]

Cryptography: EC-Schnorr

Overview "If you can't explain it simply, you don't understand it well enough" - Einstein EC-Schnorr, as the name suggests, is a Schnorr-type digital signature scheme over elliptic curve, it’s ECDSA’s little sister and Schnorr’s big brother with multiple implementations out there: maybe most widely deployed being EdDSA (used in Monero) or the upcoming MuSig implementation in Bitcoin. It is also one of my favorite digital signature scheme because of its simplicity. [Read More]

Cryptography: Schnorr

Overview "If you can't explain it simply, you don't understand it well enough" - Einstein Schnorr is another digital signature scheme known for its simplicity, no division, no inversion, just plain old multiplication. Here is my simple 16 lines implementation in Python. 1 import random, hashlib 2 p = 103 3 q = 17 4 r = 6 5 h = random.choice([h for h in range(1, p) if h**r % p ! [Read More]

Tradingview: slices of Bitcoin indicator

My second indicator in this series is Slices of Bitcoin, a very simple indicator that shows how many times a currency fits into Bitcoin. Here is the source code. In other words, the higher the value of indicator, the weaker the currency against Bitcoin. You can easily see that since the beginning of 2019 Stellar Lumen (XLM) lost half of its BTC value while the USD value was constant. Trade short and prosper! [Read More]

Ruby library for Deribit API

I just want to introduce the new open-source Ruby library for Deribit API. Here is a short intro, for more information please check the source code repo and documentation. Installation gem install deribit-api Successfully installed deribit-api-0.1.2 1 gem installed Usage require 'deribit-api' client = Deribit::Client.new Get last 3 option trades via HTTP API: trades = client.trades 'options', count: 3 trades.first.instrument BTC-10MAY19-5500-P Stream ongoing trades via Websocket API: [Read More]

From Jekyll to Hugo

Blog migration

Since nobody wants to embrace the dark side of Wordpress anymore, the easiest way (that I knew of) to bootstrap a personal website was Jekyll and Netlify. I am a huge advocate of getting things done fast, no fluff, just real stuff and this is what I did, but quite soon I realized that static Jekyll is not enough anymore and I needed to find new home. Well, the old/new kid in town is called Hugo and works like a charm with GitLab Pages, they even have a project template for it. [Read More]

Cryptography: ECDSA

Overview "If you can't explain it simply, you don't understand it well enough" Albert Einstein Elliptic curve cryptography (ECC) and digital signature algorithm (ECDSA) are more complex than RSA or ElGamal but I will try my best to hide the hairy math and the implementation details. Here is the ELI5 version in 18 lines of SageMath / Python code. I use Sage because it provides elliptic curves as first-class citizens (`FiniteField` and `EllipticCurve`) and we can take multiplication operation for granted. [Read More]

Cryptography: ElGamal

Overview "If you can't explain it simply, you don't understand it well enough" Albert Einstein ElGamal is a public key cryptosystem that is used in encryption , digital signature and homomorphic cryptography. Here is my take in 12 lines of Python code: 1 p = 7 2 g = [x for x in range(1, p) if len(set([x**i % p for i in range(1, p)])) == p-1][0] 3 k = 4 4 t = g**k % p 5 m = 6 6 import random 7 r = random. [Read More]

Cryptography: RSA

Overview "If you can't explain it simply, you don't understand it well enough" Albert Einstein RSA (Rivest-Shamir-Adleman) needs no introduction, it is well known and most used public-key cryptosystem that governs our digital lives. Here is my take, a simple implementation in 10 lines of Ruby code that is neither the best implementation nor the most efficient one but is enough for the purpose of this article. 1 p = 7 2 q = 11 3 n = p * q 4 phi = (p-1) * (q-1) 5 gcd = ->(a, b) { while(b ! [Read More]

Tradingview: weekly/monthly close indicator

I’ve decided to release a few personal indicators that I use in day by day trading and here is the first one: Weekly/Monthly close. Here is the the source code if you want to dig more into it. It’s a simple support/resistance indicator that overlays last week/month’s close price and can be configured in two modes: tracking mode - to display last week/month’s close as a single price line (1st image) history mode - to display all weekly/monthly history close prices (2nd image) Close prices are great deal to me, especially on higher timeframes and I see the price bouncing off these close lines again and again. [Read More]