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 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"
         },
@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 / OB-insurance-contract.md
Last active July 31, 2017 23:16
Insurance contracts in OpenBazaar

OpenBazaar Insurance Contracts

Insurance Contract - Base Template

  • As with all Ricardian contracts in OpenBazaar, there are 4 stages:
    1. Vendor offer
    2. Buyer order
    3. Vendor order confirmation
    4. Buyer receipt
  • A completed Ricardian contract is called a 'trade receipt'
@drwasho
drwasho / OpenBazaar REST API - GET calls.md
Last active July 27, 2019 14:22
Documentation for the OpenBazaar REST API

OpenBazaar REST API Documentation

OpenBazaar has two distinct components: a server and a client. 

The ‘server’ is the network daemon that connects with the OpenBazaar P2P network and contains the node’s database. It is the ‘business end’ of the OpenBazaar application, as it connects directly with other nodes on the network, caches data, digital signs contracts, and holds private keys etc. The server can either run locally (i.e. on your computer) or remotely on a virtual private server (e.g. Digital Ocean, Docker, Heroku).

The ‘client’ is what the user interacts with operate the functions of the server. The client uses a combination of REST and Websocket (WS) APIs to control the network and market function of the server. This enables developers to create alternative or feature-specific clients for OpenBazaar.

If the OpenBazaar server is running locally, the base URL will be:

OpenBazaar REST API Documentation

OpenBazaar has two distinct components: a server and a client. 

The ‘server’ is the network daemon that connects with the OpenBazaar P2P network and contains the node’s database. It is the ‘business end’ of the OpenBazaar application, as it connects directly with other nodes on the network, caches data, digital signs contracts, and holds private keys etc. The server can either run locally (i.e. on your computer) or remotely on a virtual private server (e.g. Digital Ocean, Docker, Heroku).

The ‘client’ is what the user interacts with operate the functions of the server. The client uses a combination of REST and Websocket (WS) APIs to control the network and market function of the server. This enables developers to create alternative or feature-specific clients for OpenBazaar.

If the OpenBazaar server is running locally, the base URL will be:

{
langName: "English",
langCode: "en",
/* Use capitalized keys for widely reused text that must be capitalized */
Next: "Next",
IAgree: "I Agree",
Back: "Back",
EnterMessage: "Enter message...",
Skip: "Skip",
Done: "Done",

Keybase proof

I hereby claim:

  • I am drwasho on github.
  • I am drwasho (https://keybase.io/drwasho) on keybase.
  • I have a public key whose fingerprint is 0614 43F9 9FC1 4F63 5DB8 2E7B 5818 FAC9 E224 0372

To claim this, I am signing this object:

@drwasho
drwasho / installobserver.sh
Last active November 18, 2020 22:50
Install the OpenBazaar server in one simple script for Ubuntu 15 (Vivid)
#!/bin/bash
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev
sudo add-apt-repository ppa:chris-lea/libsodium
sudo apt-get update
sudo apt-get -f install
sudo apt-get install libsodium-dev
sudo pip install cryptography
@drwasho
drwasho / installobserver.sh
Last active April 15, 2016 02:52
Install the OpenBazaar server in one simple script for Ubuntu 14.04 (Trusty)
#!/bin/bash
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install git
sudo apt-get install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev
sudo add-apt-repository ppa:chris-lea/libsodium
sudo apt-get update
sudo apt-get -f install
sudo apt-get install libsodium-dev
sudo pip install cryptography
@drwasho
drwasho / installobserver.sh
Last active May 18, 2016 17:19
Install the OpenBazaar server in one simple script for Debian
#!/bin/bash
apt-get update && apt-get upgrade
apt-get install git
apt-get install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev
add-apt-repository ppa:chris-lea/libsodium
apt-get update
apt-get -f install
apt-get install libsodium-dev
pip install cryptography