Skip to content

Instantly share code, notes, and snippets.

[
'247857712', #@PeterLBrandt
'176758255', #@rogerkver
'193915983', #@ProfFaustus
'3022775424',#@JihanWu
'14338147',#@SatoshiLite
'1854401',#@VinnyLingham
'1691181',#@tailopez
'399412477',#@el33th4xor
'16732770',#@CNBCFastMoney
@laanwj
laanwj / blocktoimg.py
Last active January 31, 2024 11:06
tools to write (block) data to png files and vice versa
#!/usr/bin/env python3
# Distributed under the MIT software license
import binascii, struct, sys, io, argparse
from PIL import Image
IMG_WIDTH = 512 # could be made adaptive...
MIN_HEIGHT = 4 # minimum height of image; twitter won't let us upload anything smaller
BYTES_PER_PIXEL = 4 # RGBA, 8 bit
def div_roundup(x,y):
@markblundeberg
markblundeberg / hidden-atomic-swaps.md
Last active November 23, 2023 19:54
SwapChannels: hide your atomic swaps using ordinary payment channels
@bretton
bretton / lightning-maps.md
Last active December 29, 2023 02:59
Visualisers of the Lightning Network (and some other explorers)

A (mostly) visual collection of the Lightning Network

Disclaimer

Network views tend to be the view of the network from a single node, or small selection of nodes. They are not complete views of the network. This is impossible to achieve. Even if many node views were combined, it would still be incomplete.

These network views, or network maps, have been termed 'visualisers' by the LN community.

Screenshots may reflect older visual styles, and are dated accordingly.

@gavinandresen
gavinandresen / UTXO_BitVector.md
Last active December 14, 2023 23:28
Storing the UTXO as a bit-vector

Half-baked thoughts exploring a different way of implementing a fully-validating BCH node.

The idea is to shift the storage of full transaction data to wallets, and explore how little data a fully validating node could store. This isn't a problem today (the UTXO set easily fits in the RAM of an inexpensive server-class machine), but might eventually be at very large transaction volumes.

Initial block download is a problem today (it is annoying to have to wait several hours or days to sync up a new node), and this scheme could make it orders of magnitude faster by shifting the time when full transaction data is broadcast from initial block download to new transaction announcement.

@ultimape
ultimape / manual_test_data.json
Created October 31, 2016 01:21
Brainstorming some data formats to use as a test dataset for a reboot of my "series-subjugator" project.
{ "weaves" : {
"term:singular" : "A Weave",
"meta:comment" : "Stories made of parts interweaved into a complex whole.",
"quilts" : [ "quilt" : [ "block" : {
"meta:comment" : "A block is a clipped segment from a larger story, like a peice of a quilt cut from your favorit old t-shirt. Basically, they are just abuses of meta-memes within a pre-existing larger narrative.",
"source" : {
"provider" : "youtube.com",
"last_updated" : "<INSERT ISODATE FORMAT HERE>",
"metadata" : {
"title" : "thinks like me",
@fjccoin
fjccoin / OneName
Created February 2, 2016 01:37
OneName
Verifying that +fjccoin is my blockchain ID. https://onename.com/fjccoin