Skip to content

ukiKwon/bitcoin-election-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

  • This is a election system based on bitcoin system. There are some problems yet but we indend to develop this prototype.

Essential factor

  • Essential Development Environment (1) APM (2) mysql (3) bitcoin opensource

system setting

  • This project is based on Bitcoin open source. So you have to install bitcoin(https://github.com/bitcoin/bitcoin.git). We don't explain that Install guide.

  • After the intallation is done, move '/system.op/bitcmd/*' into 'userPath/bitcoin/src/'. The contents is the shell script commanding the bitcoind, like start, stop and etc command.

    • The shell script must be modified because this project is not supported the completed automake. So see the script 'kbk'below.

      #!/bin/bash
      bitcoin-cli -regtest -datadir=uki $1 $2 $3 $4
      

    As you see, the default directory is 'uki'. So this have to be modified. The others is as same as 'kbk'. We feel sorry these unconveniences.

  • In sereis of these settings, then execute './start_kbk.sh'.

web setting

  • Recommend that git clone this project on '/var/www/html/'. The main index page is 'localhost/KBK_election/server.setting/index.php'.

    • server.setting : the page(js, php, lib etc) are in.
    • system.op : the shell script directory executed by 'server.setting'.   - All the script has 'conf_path' meaning these script path. so If the current path is dirrente from you path, Changes those rightly.
  • See, /server.setting/db/. There are 'x_config.php'. These are the database configuration which you will use.

    $db_user='root'
    $db_pwd='kbkelection'
    $db_name='kbkdb'
    

    so modify those as your configuration. I recommand that change the password only because it is the shortest corrective actions.

mysql setting

  • Currently, We uses 2 databaes. The configuration contents 'kbkdb','kwebdb'.Literally, 'kwebdb' is used for 'web' to check the voter login history and prevent the duplicated vote. The 'kbkdb' originally should have benn set on AS(Authentication server), but it's doesn't. I think it's the right place where that database have to be on AS. if you can then do like that.

  • The table properties and the sample data are on /server.setting/db/table/. Check these out.

ETC

About

[대학 졸업작품] 블록체인 기반 선거 시스템 (Election system based on blockchain)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors