Skip to content

Instantly share code, notes, and snippets.

@theblacksquid
Last active August 29, 2015 14:11
Show Gist options
  • Save theblacksquid/4e1246e1aadb08f9272b to your computer and use it in GitHub Desktop.
Save theblacksquid/4e1246e1aadb08f9272b to your computer and use it in GitHub Desktop.
OB Contract JSON (I think)
Contract = {
"GenesisPart" : {
"metadata" : {
"OBCv" : "o.o.1",
"Category" : "some category",
"subCategory" : "some subCategory",
"Expiration_Date" : "MM/DD/YYY"
},
"nonce" : "somehashOfthis1contracT", #Don't you guys want
#to add a history of
"item_data" : { #contract nonces here?
"item_title" : "some product",
"%s_price" % crypto : "0.00 %s" % crypto,
"%s_price" % fiat : "0.00 %s" % fiat,
"item_image" : "someBase64imageHash",
"item_condition" : "some condition",
"quantity" : "some amount",
"keywords" : ["some","keywords"],
"region" : "some place",
"est_delivery" : "eventually",
"shipping_fee" : "none"
},
},
"MerchantPart" : {
"Merchant_ID" : "some_seller",
"signatures" : {
"Hash" : "somehash12345",
"GPG" : "*************",
"secp256k1" : "someuncompressedPubKey"
}
},
"BuyerPart" : {
"Buyer_ID" : "some_seller",
"signatures" : {
"Hash" : "somehash12345",
"GPG" : "*************",
"secp256k1" : "someuncompressedPubKey"
}
},
"NotaryPart" : {
"Notary_ID" : "some_seller",
"signatures" : {
"Hash" : "somehash12345",
"GPG" : "*************",
"secp256k1" : "someuncompressedPubKey"
}
"escrow_address" : "somemultisigEscrowaddRess1234"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment