Bitcoin miners want their newly-found blocks to propagate across the network as quickly as possible, because every millisecond of delay increases the chances that another block, found at about the same time, wins the "block race."
Do you want know what's the orange color from Bitcoin logo? Here's the colours: | |
Hexadecimal: | |
#FF9900 | |
RGB | |
(255,153,0) | |
Any suggestions are welcome! | |
Fonts: http://www.color-hex.com/color/ff9900 and https://bitcointalk.org/index.php?topic=224522.0 |
# This script was created to convert a directory full | |
# of rst files into md equivalents. It uses | |
# pandoc to do the conversion. | |
# | |
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/ | |
# 2. Copy this script into the directory containing the .rst files | |
# 3. Ensure that the script has execute permissions | |
# 4. Run the script | |
# | |
# By default this will keep the original .rst file |
There are two communication phases for a Copay wallet: The wallet creation phase, which is when the copayers do not yet know the public keys of the other copayers. Then the wallet usage phase, where the copayers do know the public keys of the other copayers.
Each copayer independently generates a master extended public/private key pair before wallet creation which can be used to derive further public/private keys deterministically.
The author of the wallet derives a new public/private key pair for the communication purposes. This is the communication public/private key pair of the author.
The hash of the communication public key is used as the PeerJS id.
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
""" | |
PyBitcoinMultiCast - A Bitcoin Local Node Discovery Test. | |
Loosely based on Aaron Cohen's code <https://gist.github.com/aaroncohen/4630685> | |
BTC: 1Bardi4eoUvJomBEtVoxPcP8VK26E3Ayxn | |
LTC: LcSVL3Mj5VLSDzkwyBjufKemEVMbaC7vfp | |
DOGE: DKvVt6sapm6NwuWGMrcV3wVhxnrn853NFS | |
Licenced under The MIT License <http://opensource.org/licenses/MIT>. |
- Create a public key (K1). Request a public key from the server (K2).
- Create and sign but do not broadcast a transaction (T1) that sets up a payment of (for example) 10 BTC to an output requiring both the server's public key and one of your own to be used. A good way to do this is use OP_CHECKMULTISIG. The value to be used is chosen as an efficiency tradeoff.
- Create a refund transaction (T2) that is connected to the output of T1 which sends all the money back to yourself. It has a time lock set for some time in the future, for instance a few hours. Don't sign it, and provide the unsigned transaction to the server. By convention, the output script is "2 K1 K2 2 CHECKMULTISIG"
- The server signs T2 using its public key K2 and returns the signature to the client. Note that it has not seen T1 at this point, just the hash (which is in the unsigned T2).
- The client verifies the servers signature is correct and aborts if not.
- The client signs T1 and passes the signature to the server, which now broadca
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
#include <Adafruit_NeoPixel.h> | |
#include "WS2812_Definitions.h" | |
#define PIN_A 9 | |
#define PIN_B 3 | |
#define PIN_C 2 | |
#define PIN_D 12 | |
#define PIN_E 10 | |
#define PIN_F 6 | |
#define LED_COUNT 43 |