Skip to content

Instantly share code, notes, and snippets.

View leto's full-sized avatar
🐉
The Blocks Must Flow

Duke Leto leto

🐉
The Blocks Must Flow
View GitHub Profile
@leto
leto / sodium.c
Created February 23, 2020 14:30
libsodium file encryption example
#include <stdio.h>
#include <sodium.h>
#define CHUNK_SIZE 4096
static int
encrypt(const char *target_file, const char *source_file,
const unsigned char key[crypto_secretstream_xchacha20poly1305_KEYBYTES])
{
@leto
leto / gist:950711
Created May 1, 2011 18:23
Hard to reproduce sshuttle bug
$ ./sshuttle --dns -r leto@example.com 0/0 -vv
Starting sshuttle proxy.
Binding: 12300
Listening on ('127.0.0.1', 12300).
DNS listening on ('127.0.0.1', 12300).
[local sudo] Password:
Sorry, try again.
[local sudo] Password:
firewall manager ready.
c : connecting to server...
@leto
leto / zec_forks.csv
Last active April 5, 2021 18:30
Zcash Forks
Name Symbol Website base58 prefix same as ZEC? Misc
Hush HUSH https://myhush.org Yes
Komodo KMD https://komodoplatform.com No
Bitcoin Hush BTCH https://btchush.org No Run-time fork of KMD aka asset chain
Snowgem XSG (neé SNG) https://snowgem.org
VoteCoin VOT
ZClassic ZCL Yes
Zero ZER https://www.zero.finance/
Zen ZEN Fork of ZCL
BitcoinZ BTCZ https://github.com/btcz/bitcoinz
@leto
leto / worms.md
Created November 16, 2019 14:48
SilentDragon Wormhole Update

SD Wormhole Update

Just 24hrs ago, we were much further from having a wormhole. The service was down, there was no routing from port 443 to the localhost:7070 port that the wormhole runs on, we were not using CloudFlare and our SSL certs were not working correctly.

Now we have a WormHole running, where CloudFlare listens on wormhole.myhush.org:443 and sends data to our haproxy instance maps that to the wormhole backend running localhost:7070.

SDA can initiate a connection, and attempts to register a websocket sessionid. This is where things go wrong:

@leto
leto / notes.md
Last active December 31, 2020 21:33
Privacy Coin notes

Summary

TLDR: ECC profits directly from their own users lack of privacy.

  • The company behind Zcash, Electric Coin Company, works directly with Law Enforcement and blockchain analysis companies, whose largest customers are Law Enforcement Organizations (LEOs).
  • This is the Military-Industrial-Surveillance complex, where ECC directly profits from their users lack of privacy
  • The Hush community finds this to be an egregious conflict-of-interest
  • What follows are important summaries and quotes from this video:

https://www.bitchute.com/video/PWXU7D4VV0lB/

@leto
leto / bitcoin-halving.md
Last active August 2, 2020 08:31
Bitcoin Halving Calculations

Bitcoin Halving Is Not Every Four Years!

It's close, but not exactly! Let's discover why.

Block Time

Bitcoin has a block time of 600 seconds (10 minutes).

Halving Interval

@leto
leto / getchaintxstats-271077.json
Created August 1, 2020 16:04
HUSH Chain stats as of block 271077
"time": 1596297581,
"txcount": 528044,
"window_final_block_hash": "000000014603a44109982483ab90c68a7db2d587ba426560b3d4659da8656ab8",
"window_final_block_height": 271077,
"window_block_count": 17280,
"notarizations": 42456,
"shielded_txcount": 41501,
"fully_shielded_txcount": 4592,
"deshielding_txcount": 12922,
@leto
leto / testing.md
Last active July 31, 2020 13:32
Hush 3.5.0 testing

Hush 3.5.0 Testing

Most important things to test on Hush dev branch:

  • z2z, can be tested with -z2zheight param
  • Block time changing from 150s to 75s

Both of the above will happen at Block 340K on mainnet, but we can test things out by making a chain fork with the above CLI option.

https://explorer.myhush.org/api/getchaintxstats
@leto
leto / getchaintxstats.json
Created July 17, 2020 21:58
Hush getchaintxstats July 17 2020
{
"time": 1595021521,
"txcount": 513776,
"window_final_block_hash": "00000001eef63c2e6a6a0f7ea51e4bd48cd097d1cf57c7ab878437c2e0d86a89",
"window_final_block_height": 262652,
"window_block_count": 17280,
"notarizations": 41255,
"shielded_txcount": 39925,
"fully_shielded_txcount": 4258,
"deshielding_txcount": 12762,