You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

simple.sol 625B

123456789101112131415161718192021222324252627
  1. pragma solidity ^0.4.0;
  2. contract Simple {
  3. address private verifier;
  4. event Event(int32 a);
  5. event Event2(int32 a, int32 b);
  6. function Simple(address _verifier) {
  7. verifier = _verifier;
  8. }
  9. function simple(int32 a, int32 b) private verifiable(verifier) returns (int32) {
  10. return a + b;
  11. }
  12. function intermediate(int32 a, int32 b) private verifying returns (int32) {
  13. Event(a);
  14. return simple(a, b);
  15. }
  16. function entry(int32 a, int32 b) public verifying returns (int32) {
  17. int32 r = intermediate(a, b);
  18. Event2(a + b, r);
  19. return r;
  20. }
  21. }