Skip to content

Instantly share code, notes, and snippets.

@jcramer
jcramer / a-mongodb-replica-set-docker-compose-readme.md
Created October 15, 2019 18:56 — forked from harveyconnor/a-mongodb-replica-set-docker-compose-readme.md
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!

@jcramer
jcramer / p2shcash.md
Last active November 7, 2018 19:43
Introduction to the P2SH.cash System

P2SH.cash System Features

P2SH.cash is a d-app and SLP token system for simplifying P2SH workflows. P2SH creation and spending is currently cumbersome for both users and wallets to manage, which has led to underwhelming P2SH usage and adoption. For this reason we present the P2SH.cash system described herein.

In summary, the P2SH.cash system provides the following key components:

  • A new JSON schema for a Bitcoin Script Template (BST) bst.schema.json,
  • A web GUI for calculating the proper P2SH address from a BST,
  • A web GUI for easily sending funds to a calculated P2SH address,
  • A web GUI for spending an existing P2SH balance using a BST,
@jcramer
jcramer / p2sh.token.schema.json
Last active November 7, 2018 19:42
P2SH.cash SLP Token Document Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://p2sh.cash/p2sh.token.schema.json",
"title": "P2SH.cash Token Document JSON Schema",
"description": "Definition file for P2SH.cash SLP token documents that is used to store P2SH variables.",
"type": "object",
"properties": {
"v": {
"type": "integer",
"description": "Version of P2SH.cash Token Document"
@jcramer
jcramer / bst.schema.json
Last active July 23, 2021 12:21
Bitcoin Script Template (BST) Schema
{
"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",
### Keybase proof
I hereby claim:
* I am jcramer on github.
* I am jcramer (https://keybase.io/jcramer) on keybase.
* I have a public key ASC4zlbuNjLU1l5sdo-9rOBABDEloGy30dul-ROh_qlzHgo
To claim this, I am signing this object: