• This repository has been archived on 29/Mar/2023
  • Stars
    star
    994
  • Rank 46,081 (Top 1.0 %)
  • Language
    Go
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenBazaar 2.0 Server Daemon in Go

openbazaar-go

banner OpenBazaar Server Daemon in Go

Build Status Coverage Status Go Report Card

This repository contains the OpenBazaar server daemon which handles the heavy lifting for the OpenBazaar desktop application. The server combines several technologies: A modified IPFS node, which itself combines ideas from Git, BitTorrent, and Kademlia. A lightweight wallet for interacting with several cryptocurrency networks. And a JSON API which can be used by a user interface to control the node and browse the network. Find the user interface for the server at github.com/OpenBazaar/openbazaar-desktop.

Table of Contents

Install

A typical install of OpenBazaar contains a bundle of the server daemon and user interface. If this is what you are looking for, you can find an installer at https://openbazaar.org/download. If you are looking to run the server daemon by itself or to contribute to development, see below for instructions.

Install Pre-built Packages

The easiest way to run the server is to download a pre-built binary. You can find binaries of our latest release for each operating system here.

Build from Source

To build from source you will need to have Go installed and properly configured. Detailed instructions for installing Go and openbazaar-go on each operating system can be found in the docs package.

Run via Docker image

You can also use our Docker Hub image to run openbazaar-go. latest points to the latest release, but you can run any other version by matching the release tag to the Docker image tag.

docker run -it openbazaar/server:latest [OPTIONS] start [start-OPTIONS]

Dependency Management

We use Godeps with vendored third-party packages.

IPFS Dependency

We are using a fork of go-ipfs in the daemon. The primary changes include different protocol strings to segregate the OpenBazaar network from the main IPFS network and an increased TTL on certain types of DHT data. You can find the full diff in the readme of the forked repo. The fork is bundled in the vendor package and will be used automatically when you compile and run the server. Note that you will still see github.com/ipfs/go-ipfs import statements instead of github.com/OpenBazaar/go-ipfs despite the package being a fork. This is done to avoid a major refactor of import statements and make rebasing IPFS much easier.

Updating

You can either pull in remote changes as normal or run go get -u github.com/OpenBazaar/openbazaar-go.

Usage

You can run the server with go run openbazaard.go start. Ensure you are using at least version 1.10 of Golang, otherwise you might get errors while running.

Options

Usage:
  openbazaard [OPTIONS] start [start-OPTIONS]

The start command starts the OpenBazaar-Server

Application Options:
  -v, --version                   Print the version number and exit

Help Options:
  -h, --help                      Show this help message

[start command options]
      -p, --password=             the encryption password if the database is encrypted
      -t, --testnet               use the test network
      -r, --regtest               run in regression test mode
      -l, --loglevel=             set the logging level [debug, info, notice, warning, error, critical] (default: debug)
      -f, --nologfiles            save logs on disk
      -a, --allowip=              only allow API connections from these IPs
      -s, --stun                  use stun on ยตTP IPv4
      -d, --datadir=              specify the data directory to be used
      -c, --authcookie=           turn on API authentication and use this specific cookie
      -u, --useragent=            add a custom user-agent field
      -v, --verbose               print openbazaar logs to stdout
          --torpassword=          Set the tor control password. This will override the tor password in the config.
          --tor                   Automatically configure the daemon to run as a Tor hidden service and use Tor exclusively. Requires
                                  Tor to be running.
          --dualstack             Automatically configure the daemon to run as a Tor hidden service IN ADDITION to using the clear
                                  internet. Requires Tor to be running. WARNING: this mode is not private
          --disablewallet         disable the wallet functionality of the node
          --disableexchangerates  disable the exchange rate service to prevent api queries
          --storage=              set the outgoing message storage option [self-hosted, dropbox] default=self-hosted
          --forcekeypurge         repair test for issue OpenBazaar/openbazaar-go#1593; use as instructed only

Documentation

Documentation of the OpenBazaar protocol has not been formalized yet. If you would like to help, please reach out on Slack or via a new issue on GitHub.

openbazaar-go exposes an HTTP API which permits high-level interactions on the network and the internal wallet. Find the HTTP API documentation at https://api.docs.openbazaar.org.

Contributing

Contributions are definitely welcome! Please read the Contributing Guidelines before starting.

License

MIT.

More Repositories

1

openbazaar-desktop

OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)
JavaScript
647
star
2

OpenBazaar-Server

(Deprecated) OpenBazaar 1.0 Server daemon for communication with OpenBazaar-Client
Python
608
star
3

OpenBazaar-Client

(DEPRECATED) Front-end Electron application for talking with the OpenBazaar-Server daemon
JavaScript
414
star
4

OpenBazaar-Installer

Process for building the OpenBazaar 1.0 executables on OSX, Linux and Windows
Python
124
star
5

go-onion-transport

Tor onion transport for IPFS
Go
110
star
6

spvwallet

P2P SPV Wallet/Library in Go used in OpenBazaar 2.0
Go
107
star
7

multiwallet

API based multi-cryptocurrency wallet
Go
73
star
8

smart-contracts

Collection of OpenBazaar smart contracts
JavaScript
65
star
9

openbazaar3-rust

Rust implementation of OpenBazaar 3.0
Rust
61
star
10

haven

JavaScript
31
star
11

libsignal

Custom implementation of the signal messaging protocol in Go
Go
27
star
12

openbazaar-awesome

Useful resources for using OpenBazaar and building things on top of it
20
star
13

docs

OpenBazaar documentation
19
star
14

wallet-interface

Interfaces for the openbazaar-go wallet
Go
18
star
15

go-ethwallet

Ethereum wallet used in OpenBazaar
Go
18
star
16

PressKit

This repository contains information for the media about the OpenBazaar project.
PostScript
12
star
17

official_site

OpenBazaar.org official site code
HTML
12
star
18

openbazaar-web

OpenBazaar 2.0 browser-based client.
JavaScript
10
star
19

obips

OpenBazaar Improvement Proposals
9
star
20

openbazaar.com

Browse only UI
HTML
9
star
21

wns

Worldwide OpenBazaar resource finder naming service (WorfNS)
JavaScript
6
star
22

tickerproxy

Price data feed for the OpenBazaar network
Go
6
star
23

webrelay

Relay node to bridge the browser and desktop networks
Go
5
star
24

mobile-server

Repo to store iOS framework and Android libraries for development; official releases are in the openbazaar-go repo.
4
star
25

feeproxy

Serve Bitcoin fee via standardized API
Go
3
star
26

ob2-importer

CSS
3
star
27

leveldb-repair

Repairs a corrupted leveldb instance.
Go
3
star
28

bitcoind-wallet

OpenBazaar plugin for a bitcoind based wallet
Go
2
star
29

go-blockstackclient

Resolve blockchainIDs to OpenBazaar IDs
Go
2
star
30

Teflon

p2p marketplace on Optimism Layer 2 leverage stablecoin and NFTs
1
star
31

official_docs

HTML
1
star
32

downloadcounter

It counts downloads
Go
1
star
33

jsonpb

Modified Protobuf to JSON serializer in Go
Go
1
star