Skip to content

Instantly share code, notes, and snippets.

@davecgh
davecgh / dcrdsimnetsetup8nodes.sh
Last active November 13, 2018 06:25
Script to create a sample 8 node Decred simnet network
#!/bin/sh
set -e
SIMNET_NODES_ROOT=~/dcrdsimnetnodes
MASTERNODE_ADDR=127.0.0.1:19555
NODE1_ADDR=127.0.0.1:19501
NODE2_ADDR=127.0.0.1:19502
NODE3_ADDR=127.0.0.1:19503
NODE4_ADDR=127.0.0.1:19504

Initial Preparation

The first step is to read the Code Contribution Guidelines documentation to get a good understanding of policies used by the project.

Once that is done, the following commands illustrate a straight forward setup for submitting pull requests to the project:

One time setup

  • Fork dcrd on github
  • Run the following commands to obtain dcrd, all dependencies, and install it (this has probably already been done):

Keybase proof

I hereby claim:

  • I am davecgh on github.
  • I am davecgh (https://keybase.io/davecgh) on keybase.
  • I have a public key ASBSTkEPsWT6fRYfeh8WTlJPI9PKZPklV8mH6nK9YIVjpwo

To claim this, I am signing this object:

@davecgh
davecgh / dcr_offline_multisig_p2sh_example.go
Created January 15, 2019 11:49
Sample code to create and sign an offline p2sh 2-of-3 multisig transaction given WIF-encoded private keys
package main
import (
"bytes"
"encoding/hex"
"fmt"
"github.com/decred/dcrd/chaincfg"
"github.com/decred/dcrd/dcrec/secp256k1"
"github.com/decred/dcrd/dcrutil"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.