Skip to content

Instantly share code, notes, and snippets.

Avatar

chris-belcher

View GitHub Profile
View block-probability.py
import matplotlib
import numpy.random
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter
#https://www.reddit.com/r/Bitcoin/comments/4gp28d/how_to_avoid_getting_ripped_off_in_large_btc/
#https://en.bitcoin.it/wiki/Confirmation
cumulative = True
@chris-belcher
chris-belcher / calculating-equivalent-interest-rate.txt
Last active Mar 26, 2016
calculating-equivalent-interest-rate
View calculating-equivalent-interest-rate.txt
JoinMarket yield generators earn money on an unpredictable basis. It's worth calculating
the equivalent interest rate as if joinmarket was a savings account.
We can make a model of a bank account that takes deposits and withdrawals at any time and
where the balance accumulates interest, then the parameters from a JoinMarket yield-generator
wallet can be inputted to obtain the equivalent interest rate.
We know that the present value of a bank account (P) grows to the future value (F) determined
by the interest rate per unit time (r) and time (t)
https://en.wikipedia.org/wiki/Compound_interest#Mathematics_of_interest_rates
@chris-belcher
chris-belcher / pro-decentralization-link-list.md
Last active Mar 18, 2021
pro-decentralization-link-list
View pro-decentralization-link-list.md
@chris-belcher
chris-belcher / forkers-we-re-not-raising-a-single-byte.txt
Last active Dec 28, 2017
Forkers, we're not raising a single byte
View forkers-we-re-not-raising-a-single-byte.txt
In cryptoland, cypherpunks get clever
Belief in freedom switches off never
So long as nodes are run, bitcoin stays untorn
Six an hour, new blocks are born
To honest miners, new coins are bestow
Going above 21 million is a no
[chorus x2]