Skip to content

Instantly share code, notes, and snippets.

Jason Dreyzehner bitjson

Block or report user

Report or block bitjson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bitjson
bitjson / example.ts
Created Feb 10, 2020
CashAddress Encoding, Decoding, and Error Correction in Javascript
View example.ts
import { instantiateSecp256k1, hexToBin, instantiateRipemd160, encodeCashAddress, CashAddressType, instantiateSha256, encodeCashAddressFormat, attemptCashAddressFormatErrorCorrection, decodeCashAddress, decodeCashAddressFormat, stringify } from 'bitcoin-ts';
(async () => {
const secp256k1 = await instantiateSecp256k1();
const sha256 = await instantiateSha256();
const ripemd160 = await instantiateRipemd160();
// Create an address from a private key
const privateKey = hexToBin('f85d4bd8a03ca106c9deb47b791803dac7f0333809e3f1dd04d182e0aba6e553');
const publicKey = secp256k1.derivePublicKeyCompressed(privateKey);
@bitjson
bitjson / 0_cashchannels.md
Last active Dec 16, 2019
CashChannels: Recurring Payments for Bitcoin Cash
View 0_cashchannels.md
@bitjson
bitjson / 0_readme.md
Last active Nov 21, 2019
Example Gist for Importing into Bitauth IDE
View 0_readme.md
@bitjson
bitjson / bst.schema.json
Created Dec 5, 2018 — forked from jcramer/bst.schema.json
Bitcoin Script Template (BST) Schema
View bst.schema.json
{
"description": "Definition file for Bitcoin Script Templates",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://p2sh.cash/bst.schema.json",
"title": "Bitcoin Script Template (BST) JSON Schema",
"type": "object",
"properties": {
"v":{
"description": "BST schema version",
"type": "integer",
@bitjson
bitjson / setup-mac.md
Last active Dec 4, 2017
Setting up on a Mac
View setup-mac.md

General

Hard Drive Encryption

Encrypt your hard drive by activating FileVault in System Preferences > Security & Privacy. A recovery key will be generated which will allow access to your encrypted hard drive in the case of a forgotten password. Store this key securely (do not select the option to store your key with Apple).

Dev Environment

1. Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@bitjson
bitjson / pwn.json
Created Sep 2, 2014
BitPay LEET SPEAK Key
View pwn.json
{
"A" : "4",
"B" : "Ƀ",
"C" : "C",
"D" : "D",
"E" : "3",
"F" : "F",
"G" : "G",
"H" : "H",
"I" : "1",
View gist:211231ec070f4e4137f5
Verifying that +jasondreyzehner is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jasondreyzehner
@bitjson
bitjson / keybase.md
Last active Aug 29, 2015
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am bitjson on github.
  • I am jasondreyzehner (https://keybase.io/jasondreyzehner) on keybase.
  • I have a public key whose fingerprint is 308F 3EAD EB11 CF09 06A1 F2AB 412D 8152 9D88 6082

To claim this, I am signing this object:

View gist:2723014
find . -type f -name '*.php' -exec awk 'END {print NR}' '{}' + 2>/dev/null | awk '{ total+=$1 }END{print total}'
You can’t perform that action at this time.