https://cryptopop.net/2017/03/16/patches-the-pirate/