Skip to content

Instantly share code, notes, and snippets.

View nickodell's full-sized avatar

Nick ODell nickodell

  • Fort Collins, CO
View GitHub Profile
@nickodell
nickodell / bitcoin-dev_SPV_mining.txt
Last active August 29, 2015 14:26
#bitcoin-dev SPV mining discussion
02:26 petertodd no, really, like, all the big pools do this
02:26 CodeShark do what? SPV?
02:27 petertodd CodeShark: yeah, they use getblocktemplate and what not to find
when other pools make blocks, and quickly build on top of them - actually SPV is putting
it strongly, they don't really do any authentication
[log edited for brevity]
@nickodell
nickodell / scaling-bitcoin-solutions
Last active August 29, 2015 14:23
Bitcoin Scaling
Your post advocates a
( ) sidechains ( ) block-size increase ( ) anti-spam ( ) lightning-network ( ) off-chain
approach to scaling Bitcoin. Your idea will not work. Here is why it won't work. (One or more of the following may apply to your particular idea, and it may have other flaws.)
( ) There is no explanation of how Bitcoins on the sidechain will get back onto the mainchain.
( ) This will make it more difficult to run a full node, when node counts are already dropping.
( ) The idea of "spam transactions" is not well defined, and every proposed filtering method impedes legitimate use cases.
( ) Your approach allows unrelated nodes to defraud each other, and there is no arbitration process other than "complain on reddit."
## I used the following program to benchmark ECDSA multiply vs. ECDSA
## multiply-then-add.
##
## Originally from http://bitcoin.stackexchange.com/a/25039
##
## Sample output (where I get my 2% figure from.)
## =======================================================================
## 7.90899729849
## 8.05856181495
## pubkey 0x50863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352L 0x2cd470243453a299fa9e77237716103abc11a1df38855ed6f2ee187e9c582ba6L
@nickodell
nickodell / setup.sh
Created February 1, 2015 04:07
Setup Pidora
#!/bin/bash
#nmcli dev wifi con "$SSID" password "$password"
yum update -y
yum install -y net-tools traceroute git mosh screen make automake gcc gcc-c++ kernel-devel
@nickodell
nickodell / mine.py
Last active August 29, 2015 14:13 — forked from shirriff/mine.py
Enumerate hashes - thanks to Ken Shirriff
#!/usr/bin/python
import hashlib, struct
# Mine genesis block
ver = 1
prev_block = "0000000000000000000000000000000000000000000000000000000000000000"
mrkl_root = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
time_ = 1231006505
bits = 0x1d00ffff
@nickodell
nickodell / conf-vps.sh
Created September 6, 2014 01:06
Remote Conf VPS
#!/bin/sh
ssh root@$1 "wget -O - https://gist.githubusercontent.com/nickodell/9a6f556861a953e5d6b2/raw/setup.sh | sh"
@nickodell
nickodell / setup.sh
Last active August 29, 2015 14:06
Conf VPS
#!/bin/sh
# Run using
# wget -O - https://gist.githubusercontent.com/nickodell/9a6f556861a953e5d6b2/raw/setup.sh | sh
apt-get update
apt-get install -y mosh screen
git clone https://github.com/nickodell/build_bitcoin.git
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity Switches_LEDs is
Port ( switches : in STD_LOGIC_VECTOR(0 downto 0);
LEDs : out STD_LOGIC_VECTOR(7 downto 0);
clock : in STD_LOGIC
);
end Switches_LEDs;
@nickodell
nickodell / gist:5274543
Created March 30, 2013 00:06
Subtraction prog
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity Switches_LEDs is
Port ( switches : in STD_LOGIC_VECTOR(7 downto 0);
LEDs : out STD_LOGIC_VECTOR(7 downto 0));
end Switches_LEDs;
architecture Behavioral of Switches_LEDs is
signal A : STD_LOGIC_VECTOR(3 downto 0);
8,9c8,9
< looking at device '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3.4/2-1.3.4:1.0/ttyUSB1/tty/ttyUSB1':
< KERNEL=="ttyUSB1"
---
> looking at device '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3.1/2-1.3.1.4/2-1.3.1.4:1.0/ttyUSB2/tty/ttyUSB2':
> KERNEL=="ttyUSB2"
13,14c13,14
< looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.3/2-1.3.4/2-1.3.4:1.0/ttyUSB1':
< KERNELS=="ttyUSB1"
---