Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add blockmatrix samples #8

Open
1 of 4 tasks
joshua-roberts opened this issue Aug 9, 2022 · 0 comments
Open
1 of 4 tasks

add blockmatrix samples #8

joshua-roberts opened this issue Aug 9, 2022 · 0 comments
Assignees

Comments

@joshua-roberts
Copy link
Member

joshua-roberts commented Aug 9, 2022

We should create a folder in the project that contains a complete end to end demo of the blockmatrix fabric integration and a tutorial of the demo.

The file structure should look like this:

/path/to/fabric
    - blockmatrix-samples/
        - bin/
        - config/
        - network/
        - chaincode/
        - client/
        - Makefile
  • the bin and config folders can be taken from fabric-samples.

It will have four main components:

  • network: a sample fabric network from fabric-samples without the org3 scripts.
  • chaincode: sample chaincode to put, get, and delete key value pairs. Will be installed on both channels.
    • put: take a json array of key value pair and put those pairs on the ledger. For now keys and values will be only strings.
    • get: take a single key as a string and returns the value associated with it
    • delete: takes an array of keys as strings and deletes them from the ledger
  • client: the blockmatrix client application to visualize the blockmatrix
  • Makefile: a Makefile to aid in the building and running of the samples

We can use the test network from fabric-samples without the org3 scripts.

In the make file, we'll need to call the make-native and make-docker targets of the root Makefile. Then copy the contents of the generated build/bin/ folder to the blockmatrix-samples/bin folder which should be created in the during the build process. We'll also need a way of getting the fabric-ca-client and fabric-ca-server binaries into the bin folder using curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.8 1.5.3

Once these things are done, I'll go in and add the chaincode and demo client. Then we can do end to end testing.

Finally, we should create an in depth tutorial on building, running and using the blockmatrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant