Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@fjahr
fjahr / bitcoin_debugging.md
Last active March 6, 2024 11:43
Debugging Bitcoin Core

Moved to https://github.com/fjahr/debugging_bitcoin to allow for better collaboration.

This document is currently optimized for MacOS. If you would like to help me add Linux equivalent commands, please let me know.

Debugging Bitcoin Core

This guide is designed to give beginners of C++ development and/or people new to the bitcoin core code base an overview of the tools available for debugging issues as well as giving hints where issues may trip you up.

@futurepaul
futurepaul / example.rs
Last active December 12, 2022 21:08
example usage of miniscript
use bitcoin::blockdata::{opcodes, script};
use miniscript::{Descriptor, Miniscript, Policy};
use std::str::FromStr;
use secp256k1;
fn key_from_secret_key(sk: secp256k1::SecretKey, secp: &secp256k1::Secp256k1<secp256k1::All>) -> bitcoin::PublicKey {
bitcoin::PublicKey {
key: secp256k1::PublicKey::from_secret_key(
@jlgerber
jlgerber / Makefile
Created May 31, 2019 12:00
simple makefile for rust projects
prog :=xnixperms
debug ?=
$(info debug is $(debug))
ifdef debug
release :=
target :=debug
extension :=debug
@jnewbery
jnewbery / BitcoinCoreReviewClub.md
Last active October 20, 2020 09:12
Bitcoin Core PR Review Club
@yuyawata
yuyawata / main.rs
Created February 28, 2019 04:37
Rust std::env example
use std::env;
use std::process;
fn main() {
// HOST=myserver
// PORT=8080
let host_key = "HOST";
let port_key = "PORT";
let default_port = 8080;
@KCarretto
KCarretto / Makefile
Created December 27, 2018 18:50
Sphinx example. Automatically generate docs and host on github pages.
# FILE LOCATION: <project_root>/docs/Makefile
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build
@AdamISZ
AdamISZ / P2EP-for-JM.md
Created December 27, 2018 18:48
Basic payjoin/p2ep protocol for Joinmarket wallets

Described here is a variant of what has previously been published under the name "P2EP" or Pay-to-endpoint, in which A pays B but B contributes utxos, i.e. it's a coinjoin-payment.

I'm using the term "payjoin" here to refer to using that idea, but not including a URI/endpoint specific to B, and not allowing (as a merchant would) arbitrary payments, which opens up certain problems around snooping attackers (more on this below). So payjoin just means "A pays B but B actively participates and passes across utxos as extra inputs".

I'll defer a more features-focused and non-tech friendly description of what this means to a later blogpost.

@TraderX0
TraderX0 / MutliTimeFramRSI.txt
Last active December 31, 2022 11:08
Pinescript trading view multi time frame RSI - Allows you to plot upto 3 MTF RSI's on one panel
// All credits go to CMoody for the original Idea...
// THE MTFRSI is an extension of his original script to now encorporate 3RSI's on one panel
study(title="TraderX0 3-RSI MTF", shorttitle="X0_3_RSI_MTF", precision=0)
//candle source
src = close
//rsi setup
//first RSI inputs
firstRsiTimeframe = input(title="Select 1st RSI Timeframe", type=resolution, defval="60")
const noise = require('noise-peer')
const network = require('@hyperswarm/network')
const jsonStream = require('duplex-json-stream')
const hypercore = require('hypercore')
const pump = require('pump')
const swarm = network()
const hyperswarm = network()
const publicKey = Buffer.from(process.argv[2], 'hex')
@nvk
nvk / mastodon-proof.md
Created August 10, 2018 16:32
nvk's mastodon ID proof

Signed ID:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I'm https://bitcoinhackers.org/@nvk
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE2A7110s7OMrD8rvWHJ4DPGxlhgYFAlttuLkACgkQHJ4DPGxl