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 / frost.md
Created January 20, 2020 16:31
The Road Not Taken by Robert Frost

The Road Not Taken

by Robert Frost

Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth;
@leto
leto / gist:939e3bea4cb6948a086c2a68e8096a1b
Last active January 13, 2020 22:52
New Discord scams via QR code

phm87Today at 2:30 PM @here This is very important, please read this for your own Discord account safety. I don't know who thought this was a good idea yet here we are.

Discord recently introduced logging in via QR code, which is pretty handy when the desktop version randomly decides to log you out.

However, as you may have noticed, a small exploit exists. NEVER and I mean NEVER scan a QR code for Discord-related gifts or prizes, including Nitro giveaways, through the Discord mobile app, EVER. You are NOT redeeming the "prize", you're giving someone FULL access to your account, regardless of 2FA. Until Discord adds a notice to their app, you'll have to be extremely cautious about this.

@leto
leto / relnotes.md
Last active January 13, 2020 02:00
SD 0.9.0 relnotes

SilentDragon v0.9.0 Release Notes

  • Comes bundled with hushd v3.3.0 which includes the "Snarky Sasquatch" mandatory Network Upgrade.
  • Add support for 43 currencies in total via Coingecko API, can be chosen by going to Setting > Options
  • Your "local currency" can be changed at any time and does not require a restart! It includes Gold (XAU) and Silver (XAG) as well as many fiat currencies.
  • Default local currency is now BTC, changed from USD. Users who used previous versions will need to choose a new currency, or manually change it in ~/.config/Hush/SilentDragon.conf on Linux/Mac
  • New Market tab, which renders 24HR Volume and Market cap info, in HUSH, local currency and BTC
  • Fixed a metadata leakage issue inherited from ZecWallet in our websocket protocol: https://github.com/MyHush/SilentDragon/commit/6f230c90af76d6c1c3ec8064ae03d13d42d600c1
@leto
leto / anonset.md
Last active January 6, 2020 20:11
Hush Shielded Pool stats as of Jan 5th 2020

Hush Shielded Pool stats as of Jan 5th 2020

With zindex enabled, the getchaintxstats RPC returns an immense amount of information about zaddr usage. This RPC did not exist in Bitcoin when Zcash forked, so I ported it from latest BTC Core to Komodo and Hush. In the Hush version of this RPC, the -zindex functionality was added.

By default, the RPC gives stats for the last month. It can be given an arbitrary "block window" to calculate stats for any time period. Some statistics apply to the entire chain and are not specific to the block window, such as those below.

The "anonymity set" (anonset) or "shielded pool size" of Hush mainnet:

getchaintxstats
Compute statistics about the total number and rate of transactions in the chain.
This RPC will return a large amount of additional data if the shielded index (zindex) is enabled.
Arguments:
1. nblocks (numeric, optional) Number of blocks in averaging window.
2. blockhash (string, optional) The hash of the block which ends the window.
@leto
leto / getchaintxstats.json
Created January 5, 2020 17:19
$ ./hush-cli getchaintxstats
{
"time": 1578244656,
"txcount": 304823,
"window_final_block_hash": "00000001aac0e5ee4567a228858bbec75adef3bf84830924c212161316662858",
"window_final_block_height": 152458,
"window_block_count": 17280,
"notarizations": 24467,
"shielded_txcount": 18721,
"fully_shielded_txcount": 514,
@leto
leto / gamepl.txt
Created January 4, 2020 18:44
Game.pl output from 2009
The wristfoot reels from the force of your attack!
The wristfoot has limited mobility.
You gain 10 experience.
You find:
102 gold
4 yellow submarines
4 jcg's midriffs
4 tens of swords
A stain on the jcg's midriff looks vaguely like the face of Hobgoblin.
@leto
leto / zsendmany.sh
Last active December 28, 2019 11:48
hush-zsendmany
#!/bin/bash
FROM=$1
TO=$2
AMOUNT=$3
FEE=$4 || 0.0000
hush-cli z_sendmany $FROM "[{\"address\":\"$TO\",\"amount\":$AMOUNT}]" 1 $FEE
@leto
leto / verushash.md
Created December 24, 2019 17:23
Best thing about deleting Verushash....

This error no longer randomly happens when compiling Hush:

In file included from cryptoconditions/src/asn/Condition.h:14:0,
                 from cryptoconditions/src/cryptoconditions.c:17:
cryptoconditions/src/asn/SimpleSha256Condition.h:14:26: fatal error: OCTET_STRING.h: No such file or directory

Good riddance, Mikey

@leto
leto / getchaintxstats.json
Last active December 17, 2019 23:37
Chain tx stats
{
"time": 1576625358,
"txcount": 284046,
"window_final_block_hash": "00000000788477e47229375d09ec0eb45d737900eba9e14a871163da642ce09a",
"window_final_block_height": 141782,
"window_block_count": 17280,
"notarizations": 23226,
"shielded_txcount": 17204,
"fully_shielded_txcount": 171,
"deshielding_txcount": 8522,