hyperledger-archives / education

Hyperledger training material
https://wiki.hyperledger.org/display/LMDWG
Apache License 2.0
372 stars 360 forks source link

Update Sawtooth TunaChain demo app to 1.0 #30

Closed dplumb94 closed 6 years ago

dplumb94 commented 6 years ago

This PR updates the Sawtooth TunaChain demo app components to use 1.0 SDK.

  1. The TunaChain TP written in JavaScript was replaces with with one that is written in Python. This was done for several reasons:

    • Most of the Hyperledger Sawtooth maintainers are more familiar with the Python SDK than the Javascript SDK
    • Python's concise and easy to read syntax will make the example code more legible
    • Using a different language for the TP and Client shows off the flexibility of Sawtooth as a platform
  2. The TunaChain client was updated to use the 1.0 SDK

  3. A a docker-compose file was added to be specifically used for building and running TunaChain. This obviates the need for any build tools (besides docker and docker-compose) to be installed locally on a user's machine to demo the application

NOTE: Once the "Blockchain for Business - An Introduction to Hyperledger Technologies" EdX course is updated, this code should be merged with the master branch

boydjohnson commented 6 years ago

@dplumb94 Good work. I don't notice anything out of sorts. The code is really easy to follow. I notice we don't handle hash collisions, but we didn't in the previous example, so that is probably ok.