Skip to content

Instantly share code, notes, and snippets.

@drwasho
Created May 18, 2015 23:56
Show Gist options
  • Save drwasho/492da5384a6c55e693b9 to your computer and use it in GitHub Desktop.
Save drwasho/492da5384a6c55e693b9 to your computer and use it in GitHub Desktop.
OpenBazaar Ricardian Contract Schema for Physical Goods
{
"genesis": {
"merchant": {
"metadata": {
"obcv": "",
"category": "",
"subcategory": "",
"nonce": "",
"expiration_date": ""
},
"id": {
"guid": "",
"handle": "",
"legal_address": "",
"pubkeys": {
"pgp": "",
"bitcoin_pubkey": ""
}
},
"trade": {
"title": "",
"description": "",
"price": {
"btc": "",
"fiat": {
"price": "",
"currency": ""
}
},
"images": {
"image1": {
"image_link1": "",
"image_hash1": ""
},
"image2": {
"image_link2": "",
"image_hash2": ""
},
"image3": {
"image_link3": "",
"image_hash3": ""
},
"image4": {
"image_link4": "",
"image_hash4": ""
},
"image5": {
"image_link5": "",
"image_hash5": ""
}
},
"condition": "",
"quantity": "",
"keywords": "",
"region": "",
"estimated_delivery": ""
}
},
"signatures": {
"pgp": ""
}
},
"ledger":{
"stage01": {
"buyer" : {
"id" : {
"guid": "",
"handle": "",
"legal_address": "",
"pubkeys": {
"pgp": ""
}
}
},
"signatures": {
"pgp": ""
}
},
"stage02": {
"notary": {
"id":{
"guid": "",
"handle": "",
"legal_address": "",
"pubkeys": {
"pgp": "",
"secp256k1_uncompressed": ""
}
},
"trade": {
"escrow": {
"multisig_address": "",
"multisig_redemption_script": ""
}
}
},
"signatures": {
"pgp": ""
}
},
"stage03": {
"buyer":{
"id":{
"guid":""
},
"trade":{
"funding_evidence": {
"txid": ""
}
}
},
"signatures": {
"pgp": ""
}
},
"stage04": {
"merchant": {
"id":{
"guid":""
},
"trade":{
"shipping_info": {
"shipper_ID": "",
"shipper_address": "",
"shipping_tracking_number": ""
},
"releasefunds": {
"signed_tx": ""
}
}
},
"signatures": {
"pgp": ""
}
},
"stage05": {
"buyer":{
"id":{
"guid":""
},
"trade":{
"release_funds": {
"contract_status": "",
"message": "",
"signed_tx": "",
"block_header": ""
}
}
},
"signatures": {
"pgp": ""
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment