Skip to content

Instantly share code, notes, and snippets.

@moocowmoo
moocowmoo / get_dash_bootstrap.sh
Last active February 12, 2017 01:28
get latest dash blockchain bootstrap.dat from udjinm6's github
#!/bin/bash
# automatically download latest mainnet blockchain bootstrap file
cd ~/.dashcore
if [ ! -e bootstrap.dat ]; then
wget https://raw.githubusercontent.com/UdjinM6/dash-bootstrap/master/links.md -O links.md
MAINNET_BOOTSTRAP_FILE=$(head -1 links.md | awk '{print $11}' | sed 's/.*\(http.*\.zip\).*/\1/')
wget $MAINNET_BOOTSTRAP_FILE
@moocowmoo
moocowmoo / convert-xpub-to-drkv.rb
Created January 27, 2016 02:07 — forked from nmarley/conv.rb
Convert Dash BIP32 extended public key version prefix from 'xpub' to 'drkv'
#! /usr/bin/env ruby
# Example of converting Dash BIP32 extended public key (incorrectly) beginning
# with 'xpub' to correct prefix 'drkv'.
#
require 'bitcoin'
# test extended pub key
xpub = 'xpub661MyMwAqRbcF3jZGiw3QBt7nD13a7k8jVt9me27BL1vSeSpviDj6udJ5cnFyr2q2ofw7kMKGUepVhVsbLVsckxGzDmvnpGPr88CJAz1Ab5'
### Keybase proof
I hereby claim:
* I am moocowmoo on github.
* I am moocowmoo (https://keybase.io/moocowmoo) on keybase.
* I have a public key whose fingerprint is 6225 D915 217D CB1A B22A F7FF AE5C 4EE4 7DB5 2172
To claim this, I am signing this object: