Skip to content

Instantly share code, notes, and snippets.

View hoffmabc's full-sized avatar

Brian Hoffman hoffmabc

View GitHub Profile
-----BEGIN PGP MESSAGE-----
Comment: GPGTools - https://gpgtools.org
hQEMAwXuIdO/re60AQf/TJBnh6MoOI4duw7DkwDvXc/RQM60Ay1ko1zpYCwx/JlR
Gm4G5xyDUr27RrSJEVfSJYk/c20Fjg47QEaItZKLxsVNDKYct4rT8JzUXjxM3SQu
uXMjCi14wFZo3br8D37Yxd+fP/1rhVXYex8ZcwMfDY5SFjR73frWE5myzOSmw7iY
uZFIGL13tbG0FBYE6LXszyEZhbBp2VwKTGcElDLFnn1nyydi46o7AuNK26XOG8CX
NFkHkk7CStP2HhPvSS67j167T48anoxg1YCE+PVlwcuLsuvdiD+fTkmMAmBcK+20
TcCjYiDdNrDs4ovrHuqIIE97lZUXcQZ2RzxHzRcTEtLqAQWcO64C/hl9bVTtpaqh
DombRo8jmPNtiv7yrd6e8U9nz8q1lbOhnzvb2S/EU8gLmlaDuZN8bgPLvCMP9040
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
nym_id : SamPatt
btc_addr : 17GpZr1wkzHQtdvtCuj3V8Em8xd9Rbj7At
asset_name : 1 USB Drive - 256MB
asset_price : 0.0026
contract_exp : 2014-06-29 12:00:00
-----BEGIN PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
{
"OpenBazaar Contract": {
"OBCv": "0.1",
"Category": "Physical good",
"Sub-category,": "Ask price: negotiable",
"Nonce": "01",
"Expiration": "2014-06-29 12:00:00"
import json
import logging
from collections import defaultdict
import traceback
from multiprocessing import Process, Queue
from threading import Thread
from random import randint
from zmq.eventloop import ioloop, zmqstream
import zmq
import hashlib
import json
import logging
import traceback
from urlparse import urlparse
import obelisk
from protocol import hello_request, hello_response, proto_response_pubkey
from pymongo import MongoClient
import pyelliptic as ec
@hoffmabc
hoffmabc / gist:1162808187c9a92c10c1
Created July 7, 2014 16:44
Fixed Price contract fields
contract = { "OBCv":"0.1-alpha" };
contract.category = "physical_goods";
contract.nym_id = "";
contract.contract_exp = "2014-01-01 00:00:00";
contract.keywords = "";
contract.currency = "XBT";
contract.node_id = "";
contract.address = "";
contract.sellerPGP = "";
contract.item_title = "";
def fetched(ec, history):
self._log.info(history)
if ec is not None:
self._log.error("Error fetching history: %s" % ec)
return
self._fetched(history, destination, finished_cb)
self.client.fetch_history(self.address, fetched)
Verifying that +brianhoffman is my Bitcoin username. You can send me #bitcoin here: https://onename.io/brianhoffman
2014-11-21 16:17:21,796 - [1] CryptoTransportLayer - INFO - Received message type "hello" from "seed.openlabs.co" tcp://104.131.22.22:12345 38f2294d84c192e606b234739b5004297ccebf76
2014-11-21 16:17:21,797 - [1] CryptoTransportLayer - INFO - Pinged {"senderNick": "seed.openlabs.co", "pubkey": "046a8988427dd298bee0792c8b5d02debe26b66d5975049dc1695b8c4b24ceffd14d6b256541a2144dbf1ac3ebf3b6ebc884cefdb15d06cf61ae44647f5890bb6d", "uri": "tcp://104.131.22.22:12345", "senderGUID": "38f2294d84c192e606b234739b5004297ccebf76", "v": "0.3.1.dev0", "type": "hello"}
2014-11-21 16:17:21,892 - [1] CryptoTransportLayer - INFO - Received message type "hello" from "seed.openlabs.co" tcp://104.131.22.22:12345 38f2294d84c192e606b234739b5004297ccebf76
2014-11-21 16:17:21,893 - [1] CryptoTransportLayer - INFO - Pinged {"senderNick": "seed.openlabs.co", "pubkey": "046a8988427dd298bee0792c8b5d02debe26b66d5975049dc1695b8c4b24ceffd14d6b256541a2144dbf1ac3ebf3b6ebc884cefdb15d06cf61ae44647f5890bb6d", "uri": "tcp://104.131.22.22:12345", "sen
@hoffmabc
hoffmabc / gist:9510325229819d75aad3
Last active August 29, 2015 14:10
eHealth Exchange Adapter Review

Exchange Adapter Code

AdapterBundle

  • sets up adapter_dev2
  • execute VistaLinkSetup jar

VANHIN_Adapter

  • connectorConfig.xml
  • mapping HashMap or POJO to XML C32 or C62