Skip to content

Instantly share code, notes, and snippets.

View drwasho's full-sized avatar

Dr Washington Sanchez drwasho

View GitHub Profile
@drwasho
drwasho / OpenBazaar REST.yml
Created July 22, 2015 02:43 — forked from hoffmabc/gist:38883a3fb08f26b80330
OpenBazaar REST API
swagger: '2.0'
info:
title: OpenBazaar API
description: Let's make trade free
version: "1.0.0"
# the domain of the service
host: localhost
# array of all schemes that your API supports
schemes:
- http
@drwasho
drwasho / OpenBazaar Ricardian Contract Template.md
Last active September 4, 2015 06:10
Contract template for physical goods, digital content, and services.
{
   "vendor_offer" : {
      "listing" : {
         "metadata" : {
            "version" : "",
            "expiry" : "",
            "category" : "",
            "category_sub" : "fixed price"
         },

Moderator Selection

Should a buyer be selecting the moderator? In my view, no.

There are two options in this question:

  1. Vendor selects the moderator
  2. Buyer selects the moderator

If the vendor is selecting the moderator, then the buyer will be scanning listings and factoring in the choice of moderator in a decision to place an order. This means that any orders have essentially accepted the choice of moderator attached to that listing.

OpenBazaar v1 Contracts

Physical Goods - Fixed Price

{
   "01_vendor" : {
      "01_listing" : {
         "01_metadata" : {
            "01_obcv" : "",
@drwasho
drwasho / OBRC Physical Goods.json
Created May 18, 2015 23:56
OpenBazaar Ricardian Contract Schema for Physical Goods
{
"genesis": {
"merchant": {
"metadata": {
"obcv": "",
"category": "",
"subcategory": "",
"nonce": "",
"expiration_date": ""
},
@drwasho
drwasho / Seed Contract Template
Last active August 29, 2015 14:17
OB Seed Contract Template
{
"stage01_merchant": {
"genesis": {
"metadata": {
"obcv": "0.0.3",
"category": "Physical item",
"subcategory": "Fixed Price",
"nonce": "",
"expiration_date": ""
},
@drwasho
drwasho / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@drwasho
drwasho / drwashosig_OpenBazaar
Last active August 29, 2015 14:08
Multisignature Signing
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Migration of our project funds to a multisig address.
=====================================================
We, the undersigned core developers of OpenBazaar, have decided with consensus
on the following on November 4th, 2014:
Because of the facts that:
Verifying that +drwasho is my Bitcoin username. You can send me #bitcoin here: https://onename.io/drwasho

Key 1

Pubkey 1

04a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea235

Private key 1

5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss

Key 2

Pubkey 2

04e8990b242406721b144bd278967782f9dfe22a26fefa3ac510b776addce43736b3a0f3490ddcfab21a72bb98a0c2f1c5f095fbce15f1807851a63d74824edecd

Private key 2