Skip to content

Commit

Permalink
Added XML syntax highlighting and Fixed inaccurate XML comment
Browse files Browse the repository at this point in the history
  • Loading branch information
himynameismartin committed Sep 3, 2014
1 parent 70c7844 commit 523adfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/01 Ricardian-Contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The contract is saved as an XML file, with the SHA1 hash of the file as part of

Alice wants to sell a 16 pound watermelon. She creates the contract below, signs it with her nym key (her private PGP key) and distributes/seeds it on the *OpenBazaar* network.

```
```XML
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Expand Down Expand Up @@ -215,7 +215,7 @@ To reduce the overall size of the contract at each stage of the process, the nex

For example, the buyer in step (1) can format the contract the following way:

```
```XML
<?xml version="1.0"?>

<!-- Seller's Contract Hash -->
Expand All @@ -230,7 +230,7 @@ For example, the buyer in step (1) can format the contract the following way:
<!-- Bitcoin Pubkey -->
<btc_addr> 03d728ad6757d4784effea04d47baafa216cf474866c2d4dc99b1e8e3eb936e730 </btc_addr>

<!-- Bitcoin Pubkey -->
<!-- Buyer's Delivery Addres -->
<delivery_addr> 1060 W Addison St, Chicago, IL 60613, United States </delivery_addr>

<!-- Buyer's PGP Key -->
Expand Down Expand Up @@ -312,15 +312,15 @@ excS0w19X3r6nX+N6/+x

For even later iterations of the contract, a running tally of the previous hashes can be made in the contract field. For example:

```
```XML
<!-- Seller's Contract Hash -->
<contract_hash> 4cb658abd0ed7cd1a0531a5f1e839638a8d22d93 </contract_hash>
<contract_hash> 3f295f95f4a9abb0dba2cdb026ea551f0fa91507 </contract_hash>
```

There is also some flexibility in the naming of this field for clarity and simplicity:

```
```XML
<!-- Contract Chain -->
<seller_signed_contract_hash> 4cb658abd0ed7cd1a0531a5f1e839638a8d22d93 </seller_signed_contract_hash>
<buyer_signed_contract_hash> 3f295f95f4a9abb0dba2cdb026ea551f0fa91507 </buyer_signed_contract_hash>
Expand Down

0 comments on commit 523adfe

Please sign in to comment.