Skip to content

Instantly share code, notes, and snippets.

View iamnathanwindsor's full-sized avatar

Nathan Windsor iamnathanwindsor

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1MjNkDqSn4DLvVamVqwLzgU8SESa2YFGex https://explorer.blockstack.org/address/1MjNkDqSn4DLvVamVqwLzgU8SESa2YFGex
@iamnathanwindsor
iamnathanwindsor / marketplace.sol
Created July 25, 2016 03:01
Marketplace Solidity Smart Contract
// This smart contract can be used as an escrow while an item is being
//shipped. There are some flaws here, which a service like eBay has generally
//solved by taking phone calls and working it out. In many ways there are still
//non-code problems that are not taken into account in this small code example.
contract Purchase {
address seller;
address buyer;
uint value;
enum State { Created, Confirmed, Disabled }