TitleA simpler and easy way to handle endorsement policies with Hyperledger Fabric based products
Status

Difficulty

    


Description 

Introduction

Endorsement policy controls the approval of a proposal to be executed at various granular levels.
In other words, this is the primary entity which is validated before a transaction is committed.
Endorsement policy can operate at two different granularities:

Problem Statement

This becomes complex to handle when operating at scale.

Some usecases

  1. Complex endorsement policy resolving for namespace level ones
  2. Tracking Endorsement policies on large quantity Private data collections each having different endorsement policies
  3. Resolving policy for a given object combining namespace level with overiding individual key-level ones.

Additional Information

  1. Understanding endorsement policies in Hyperledger Fabric v2.x - https://hyperledger-fabric.readthedocs.io/en/release-2.0/endorsement-policies.html
  2. Understanding chaincode - https://hyperledger-fabric.readthedocs.io/en/release-2.0/chaincode4noah.html

Learning Objectives

  1. Understanding of hyperledger fabric concepts
  2. Learn to manage (write/install/execute) hyperledger smart contracts (chaincode)
  3. Good exposure to DLT technologies
  4. Understand De-centralised transaction endorsement concepts
  5. Gain Hands-on experience with opensource software development

Expected Outcome

  1. A library/set of tools implementation thats able to ease endorsement policy handling
  2. Good documentation with diagrams in github
  3. Unit and integration tests for the implementation

Relation to Hyperledger 

  1. Hyperledger Fabric
  2. Hyperledger Cello

Education Level

Any

Skills

  1. Interest in distributed systems
  2. Coding skills required to implement chaincode in golang, nodejs or java
  3. Familiarity with bash is a plus
  4. Knowledge on container technologies like Docker is also an advantage

Future plans

Integration with hyperledger fabric, explorer projects

Preferred Hours and Length of Internship

Part-time (20 hours a week for 24 weeks starting in summer and ending in fall)

Mentor(s) Names and Contact Info

Anoop Vijayan, anoop@tuxera.com Karthikeyan Sundaramoorthy, karthik@cloudronics.com

Mentee Name and Contact Info

Abhimanyu Shekhawat, abhimanyushekhawat17.as@gmail.com

Project Plan and Report

Problem Statement:-

Solution:- 

A tool that helps to query and modifying policies with relative ease.

The project can be found at 

https://github.com/maniankara/hyperledger-easydoser

Information about the project’s weekly updates are being updated at

https://github.com/maniankara/hyperledger-easydoser/blob/master/project_status.md

Deliverable:-

  1. Milestone 1:-
    1. A web UI to pick the required keys and certificates.
    2. Show policies of all the channels that a peer/owner/admin is part of.
    3. Representing policies of different organizations in a bifurcated manner.
    4. Updating documentation.
  2. Milestone 2:- 
    1. Querying and displaying endorsement policies of private collections that a peer and org is part of.
    2. Modifying endorsement policies of a  channel.
    3. Updating the modified policy of the channel to the network with admin level keys.
    4. Updated Web-UI as per the newly added features.
    5. Updating documentation.
  3. Milestone 3:- 
    1. Representing all the obtained endorsement policies of a peer in a tree format, for easier understanding and observations.
    2. Representing all the obtained endorsement policies of an organization in a tree format.
    3. Updated Web-UI as per the newly added features.
    4. Updating documentation.
  4. Milestone 4:-
    1. Cleaning up the code and adding some finishing touches to the Web-UI.
    2. Adding CI and tests.
    3. Updating and improving documentation.


End Product:-

The end product will be an easy to use Web-UI where any user picks their  keys and certificates and then gets to query and view all the endorsement policies (key level and namespace level) in a simplified and hierarchical manner. If the user is an admin, the user can modify channel policy definitions.