Skip to content

Instantly share code, notes, and snippets.

View wanseob's full-sized avatar
🦉

Wanseob Lim wanseob

🦉
View GitHub Profile
@wanseob
wanseob / chal-oksusu-readme.md
Created September 13, 2018 07:55
[Chal Oksusu Description] SKT Blockchain hackathon idea node

Chal Oksusu

Chal Oksusu is a dApp for video contents based on Creativity Driven Economy. Using Chal Oksusu, you can not only enjoy video contents but also invest in and produce contents. On Chal Oksusu, contents are curated and delivered by decentralized autonomous ecosystem.

Why decentralization?

Video Content Business

  • Revenue
  • SVOD: Subscription
@wanseob
wanseob / ibusjump.vim
Created November 18, 2018 08:26 — forked from mozbugbox/ibusjump.vim
Switch ibus to English on Escape key for Vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Auto switching IBus engine to Engish when leaving insert mode
" Maintainer: mozbugbox <mozbugbox@yahoo.com.au>
" License: GPL version 3 or later
"
" Options:
" let g:ibus_eng_engine = 'xkb:us::eng'
" let g:ibus_reset_insert = 1
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
import "../MerkluxReducer.sol";
contract TransferReducer is MerkluxReducer {
function reduce(
IStateTree _tree,
address _from,
bytes memory _encodedParams // encoded params
) public returns (
bytes memory _encodedPairs // encoded key value pairs
) {
@wanseob
wanseob / DocumentSigner.sol
Created April 26, 2019 08:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=true&gist=
pragma solidity >=0.4.21 < 0.6.0;
contract DocumentSigner {
mapping(bytes32=>string) public docs;
mapping(bytes32=>address[]) public signers;
modifier validDoc(bytes32 _docHash) {
require(bytes(docs[_docHash]).length != 0, "Document is not submitted");
_;
}
import './SafeMath.sol';
pragma solidity ^0.5.0;
contract FOMO {
using SafeMath for *;
address public winner;
uint public lockTime;

Keybase proof

I hereby claim:

  • I am wanseob on github.
  • I am wanseob (https://keybase.io/wanseob) on keybase.
  • I have a public key ASBoeFAunT-ao_2eCezLkF3R5QxTioRa4gyjX_wy6Df8uQo

To claim this, I am signing this object:

include "circomlib/circuits/mux1.circom";
include "circomlib/circuits/comparators.circom";
template IfElseThen(n) {
signal input obj1[n];
signal input obj2[n];
signal input if_v;
signal input else_v;
signal output out;
component comparators[n];
include "circomlib/circuits/if_else_then.circom";
template PointComp() {
component if_else_then = IfElseThen(2); /// compare 2 values
signal input point1[2];
signal input point2[2];
signal output out;
/// return (point1 == point2 ? 1 : 0;)
if_else_then.obj1[0] <== point1[0];
@wanseob
wanseob / circuit.circom
Last active April 29, 2020 07:56
ZkTransaction minimum circuit
template ZkTransaction(tree_depth, n_i, n_o) {
/** Private Signals */
// Spending notes
signal private input spending_note[7][n_i];
signal private input signatures[3][n_i];
signal private input note_index[n_i];
signal private input siblings[tree_depth][n_i];
// New notes
signal private input new_note[7][n_o];
@wanseob
wanseob / attestation.txt
Created March 24, 2021 01:30
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_1_1",
"ceremonyId": "9HTUnepINy115FBtTdVc",
"time": "2021-03-24T01:30:57.637Z",
"contributionNumber": 88,
"hash": "1a51aace 05d1cfb0 67ed1261 c8937ac0\n 7ab2d2c9 c31074e1 ee169357 bcd54fec\n 3a32b760 b5472c3b 3b26381f 101d39c7\n 273b2c8f d875535b 142232ca bbb9bea2\n"
}