Skip to content

Instantly share code, notes, and snippets.

View seresistvanandras's full-sized avatar
☝️
higher, higher

István András Seres seresistvanandras

☝️
higher, higher
View GitHub Profile
@seresistvanandras
seresistvanandras / semaphore-binary-merkle-root-fix_attestation.log
Created August 1, 2025 13:22
Attestation for Semaphore Binary Merkle Root Fix MPC Phase 2 Trusted Setup ceremony
Hey, I'm seresistvanandras-16176585 and I have contributed to the Semaphore Binary Merkle Root Fix MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (semaphore-1)
Contributor # 95
Contribution Hash:
53c0430f 8ceac853 ecafc80d a5d2612a
db6d159a bb370578 52a934db 7e8f3c67
56fa5c93 93a9425f b3c80a1c 308f2d3d
5d76372b d0d6df88 58eefd29 6bef1b6e
@seresistvanandras
seresistvanandras / OBWS_2.md
Last active June 3, 2024 06:08
Hacking smart contracts for fun and profit

Hacking smart contracts for fun and profit

Description of the game

The goal of the game to break as many contracts as possible! Note: one of these contracts is a HONEYPOT! BE CAREFUL!!

Claim your Ropsten test ether here!

The contracts you need to break and their addresses:

@seresistvanandras
seresistvanandras / OBWS_1.md
Last active February 16, 2019 15:06
Open Blockchain Workshop Series 1st edition

Important addresses, links for the 1st Open Blockchain Workshop

Get some (testnet) ether here

István's account on Ropsten and the corresponding address: 0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b

Use this Blockchain explorer: https://ropsten.etherscan.io

helloOBWS contract address: 0xD568eC979E970f104d429D7fEdc7aa78bD5Df8f6

contract BetOnBrazilvsBelgium is Ownable, usingOraclize {
    using SafeMath for uint;
    string public homeTeam="43924";
    string public awayTeam="43935";
    bool public winningTeamSet;
    bool public winningTeam;
    mapping(address => Bet) public bets;
function uniquify(uint[] input) public pure returns(uint[] ret) {
      if(input.length < 2) {
          return input;
      }

      uint[256][2] memory hashTable;
      uint[] memory index = new uint[](input.length);
      uint counter;
      bool nullValue;
function uniquify(uint[] input) public pure returns(uint[] ret) {
       if(input.length < 2) {
           return input;
       }

       uint lengthOfKeySpace = input.length*2;

       uint[] memory hashTable = new uint[](lengthOfKeySpace);
       uint[] memory index = new uint[](input.length);
function uniquify(uint[] input) public pure returns(uint[] ret) {
       if(input.length < 2) {
           return input;
       }

       bool[] memory duplicates = new bool[](input.length);
       uint256 duplicateCounter = 0;
       uint counte r = 0;
 uint[] memory unique = new uint[](input.length);
contract Unique {
   /**
    * @dev Removes all but the first occurrence of each element from a list of
    *      integers, preserving the order of original elements, and returns the list.
    *
    * The input list may be of any length.
    *
    * @param input The list of integers to uniquify.
    * @return The input list, with any duplicate elements removed.