Code Monkey home page Code Monkey logo

sberbankhackathon's Introduction

Sberbank Hackathon

goal: create a hyperledger chaincode contract where users can rent items they own to other users

completed: created a smart contract that allows users to rent their property to other users - see /contracts/rental.sol

completed: created Solidity to Go bindings for rental.sol

YouTube video Demo of smart contract:

https://youtu.be/e4iqZlX2rxc

Rental Smart Contract live on Rinkeby:

https://rinkeby.etherscan.io/address/0xa22eecf77ba8d3d47b24612d2d1f87b4c61e3050#writeContract

using geth abigen tool:

Create Solidity Go Bindings

abigen --sol rental.sol --pkg main --out ../goBindings/rental.go

Why Sberbank should look into using a permissioned blockchain that allows developers to use Solidity

Potential Risk Detection System of Hyperledger Fabric Smart Contract based on Static Analysis

  1. https://easychair.org/publications/preprint_open/7c6R

"Due to the lack of mature development specifications for smart contracts using general-purpose programming language, there are often potential risks in the smart contracts related to the characteristics of Hyperledger Fabric. It will bring many inconveniences and potential safety hazards to users after the smart contracts are deployed."

Hyperledger Fabric: A Distributed Operating System for Permissioned Blockchains

  1. https://arxiv.org/pdf/1801.10228.pdf

"Unfortunately, generic languages pose many problems for ensuring deterministic execution. Even if the application developer does not introduce obviously non-deterministic operations, hidden implementation details can have the same devastating effect (e.g., a map iterator is not deterministic in Go)."

Hyperledger Besu - EVM compatible permissioned blockchain

https://besu.hyperledger.org/en/stable/


@devs - useful links:

Deploying solidity to hyperledger fabric - couldn't figure it out :(

https://medium.com/coinmonks/solidity-smart-contract-on-hyperledger-fabric-3d50f25e577b

https://hyperledger-fabric.readthedocs.io/en/latest/deploy_chaincode.html#install-the-chaincode-package

Go binding https://geth.ethereum.org/docs/dapp/native-bindings

https://hackernoon.com/a-step-by-step-guide-to-testing-and-deploying-ethereum-smart-contracts-in-go-9fc34b178d78git

Install Hyperledger https://medium.com/hackernoon/hyperledger-fabric-installation-guide-74065855eca9

EVM Chaincode https://github.com/hyperledger/fabric-chaincode-evm

https://www.ledgerinsights.com/hyperledger-fabric-integrates-ethereum-smart-contracts-evm-blockchain/

https://www.youtube.com/watch?v=uAPZ2QMSJaI

https://github.com/ethereum/go-ethereum

sberbankhackathon's People

Contributors

partylikeits1983 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.