Logchain-S

Blockchain platform for internet of thigns environment

ETC

IoT

v1.0
September 22, 2019

Git Hub Project Link
LogChain-S

Runtime Environment

WE RECOMMEND USERS TO INSTALL RUNTIME ENVIRONMENT IN Windows and LINUX OPERATION SYSTEM(ubuntu). THE GUIDE FOR SETTING RUNTIME ENVIRONMENT ARE APPLIED FOR LINUX OPERATION SYSTEM FOR THE MOMENT!!

Get Started

Windows Environment: 

  • git clone https://github.com/jaesunkim/logchain-s.git
    • After installing python 3.6, go to the path where pip is installed and open the cmd wind
    • pip install PyQt5
    • pip install netifaces
    • pip install flask

Linux Environment:

    • sudo apt-get update
    • sudo reboot
    • sudo apt-get install git-core
    • sudo apt-get install python-pip
    • sudo pip install –upgrade pip
    • sudo pip install flask
    • sudo pip install PyQt5
    • git clone https://github.com/jaesunkim/logchain-s.git
    • Logchain-s
    • git checkout logchain-s
    • git pull
    • sudo pip install netifaces

Blockchain network Environment: 

  • Requires three or more nodes
  • One is a seed peer and the other nodes are generic peers.
    • Seed peer setting -> modify peermgr.json file
      •  Change the PEER_LIST list in the peermgr.json file (for authentication peers)
    • Generic peer setting -> modify peerconnector.json
      • Change the PEER_MGR_LIST  in the peermgr.json file (for authentication peers)
    • Execute  python./launcher/logchain_launcher_for_trustpeer.py
    • Execute  python ./launcher/logchain_launcher_for_genericpeer_restapi_node.py

Http REST API:

  • Save transaction
    • URL:/tx/save/, Method : POST, URL parameters : N/A, json
  • Deploy  smart contract
    • URL: /contract/deploy/, Method : POST, URL parameters : N/A, json
  • Execute smart contract
    • URL: /contract/execute/, Method : POST, URL parameters : N/A
  • Show all saved transactions
    • URL: /info/tx/, Method : GET, URL parameters : N/A
  • Show all deployed smart contracts
    • URL: /info/contract/deployed/, Method : GET, URL parameters : N/A
  • Show all results of deployed smart contracts
    • URL: /info/contract/deployed/result/, Method : GET, URL parameters : N/A

Demo App:

  • Demo Rest API
  • Demo_save tx
  • Demo smartcotract (Depoly)
  • Demo smartcontract (Run)

Copyright (c) 2017, Sogang University  All rights reserved Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Logchain-S  [Blockchain platform for internet of thigns environment]


Introduction

  • Logchain-s is a blockchain platform for interent of thigns environment (gateway node, cloud node, machine node)
  • Private blockchain network
  • Applying a lightweight consensus algorithm considering CPU, storage space constraints, etc. of IoT computing
  • Easy access control for developer and users based python
  • Logchain-S provides internet of thigns transaction save service and smart contract deploy/excute based HTTP restfull