body: Please give me legal, black-and-white answer.
  
  
  Winklevoss Twins say someone stole their idea for Facebook and Judge awarded them some millions.
  
  
  But how could have Winklevoss Twins protected themselves from being cheated in the beginning.
  
  
  What legal things could they have in place so
  
  
  1. They are not cheated to begin with (hence get credit for their idea)
  2. If programmer decides to cheat them anyway, the case is open-and-shut and Judge rules in their favor without case dragging for years.
  
  
  On the flip side, let say programmer did in fact create Facebook. 
  
  
  How does programmer legally protect himself from people who claim idea was stolen, takes him to court, and ends up paying the accuser (even though the idea was his from the start)?
  
  
  
title: How Could the Winklevoss Twins Have Legally Prevented Anyone from Stealing their Facebook Idea