Skip to content

Instantly share code, notes, and snippets.

@theblacksquid
theblacksquid / output
Created November 9, 2014 03:33
./configure.sh re-run output
user@user-HP-14-Notebook-PC:~/OpenBazaar$ ./configure.sh
+ sudo apt-get update
[sudo] password for user:
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Ign http://ppa.launchpad.net trusty InRelease
Hit http://dl.google.com stable/main amd64 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://dl.google.com stable/main i386 Packages
@theblacksquid
theblacksquid / logfile
Created November 9, 2014 09:32
PermissionError: [Errno 13] Permission denied: 'env'
user@user-HP-14-Notebook-PC:~$ cd OpenBazaar
user@user-HP-14-Notebook-PC:~/OpenBazaar$ ./configure.sh
+ sudo apt-get update
[sudo] password for user:
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Ign http://archive.canonical.com precise InRelease
Hit http://dl.google.com stable/main amd64 Packages
Hit http://archive.canonical.com precise Release.gpg
@theblacksquid
theblacksquid / logfile
Created November 9, 2014 22:45
setup.py egg_info failed with error code 1
user@user-HP-14-Notebook-PC:~$ cd OpenBazaar
user@user-HP-14-Notebook-PC:~/OpenBazaar$ ./configure.sh
+ sudo apt-get update
[sudo] password for user:
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://dl.google.com stable/main amd64 Packages
Hit http://dl.google.com stable/main i386 Packages
Ign http://dl.google.com stable/main Translation-en_US
@theblacksquid
theblacksquid / code.py
Created December 11, 2014 04:31
contractlib [BUGGED]
class ContractPart:
def __init__(self, nym, item, price,
sig, contract_exp=None):
self.nym = nym
self.item = item
self.price = str(price)+"BTC"
self.contract_exp = contract_exp
self.sig = sig
class Message:
def __init__(self, sender, receiver,
cc, content): #param cc is the
self.sender = sender #receipient/s of
self.receiver = receiver #a copy ofthe message
self.cc = cc
self.content = content
self.table = {
"sender" : self.sender,
from random import randint
# was able to finally create a working mechanism for
# creating a grid of random numbers n thru n**2
def genSquare(num):
matrix = {}; already = []
# initialize empty grid
for count in range(num):
matrix[count] = [0]*num
# produce the grid,
Verifying that +theblacksquid is my openname (Bitcoin username). https://onename.io/theblacksquid
@theblacksquid
theblacksquid / contract.txt
Last active August 29, 2015 14:11
OB Contract JSON (I think)
Contract = {
"GenesisPart" : {
"metadata" : {
"OBCv" : "o.o.1",
"Category" : "some category",
"subCategory" : "some subCategory",
"Expiration_Date" : "MM/DD/YYY"
},
@theblacksquid
theblacksquid / pseudo-nodes.md
Last active August 29, 2015 14:12
[PROPOSAL] Buyer-Only OpenBazaar Front-End

Buyer-Only OpenBazaar Front-End

Problem:

Our current implementation of OpenBazaar requires both Buyers and sellers to have a full node running. Though this might make sense for for sellers to have a node up to guarantee full exposure to OB's network, it might not make sense for a casual buyer to have to download a desktop application in order to buy online, because there are already existing marketplaces for that (except for smartphone users, for whom every little thing is an app on your phone).

/u/alphamystic007 said on the subreddit : "... can my online store use openbazaar as a backend while keeping my frontend the same?"

And while @SamPatt has given a very good answer on how to kind of implement that, the prospective buyer would still need to have the full OB client on their PC before hand. That's not necesarily a bad thing, but being a market at its beta stages, its highly unlikely that the buye

@theblacksquid
theblacksquid / Notes.md
Last active August 29, 2015 14:12
Thoughts on the Buyer Front-End, notes and suggestions

Dependencies

/// tbd, these are just suggestions

Key generation, signing and escrow

  • openpgpjs
  • bitcoinjs-lib

GUI