Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. pragma solidity ^0.4.9;
  2.  
  3. contract MultiPartyContract {
  4.  
  5. // a multi-party document `authenticity` scheme where by
  6. // the 3 hard-coded owners are certifying the authenticity of a single document
  7.  
  8. address constant owner1 = 0x0;
  9. address constant owner2 = 0x0;
  10. address constant owner3 = 0x0;
  11.  
  12. bytes32 constant public document = 0x0;
  13.  
  14. mapping (address => bool) attestations;
  15.  
  16. function setAttestation(bool valid){
  17. attestations[msg.sender] = valid;
  18. }
  19.  
  20. function isValid() constant returns (bool) {
  21. if (attestations[owner1] && attestations[owner2] && attestations[owner3])
  22. return true;
  23. else
  24. return false;
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement