Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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






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:

  • Namespace level: They can be set for the whole namespace.
    This is the default approach in which endorsement policies are specified in the chaincode definition,
    which is agreed to by channel members and then committed to a channel
  • Individual key level: They can be set for individual state keys called private data collections.
    You can also specify an endorsement policy at the private data collection level,
    which would override the chaincode level endorsement policy for any keys in the private data collection.
    This would further restrict which organizations can write to a private data collection.

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 -
  2. Understanding chaincode -

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



  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, Karthikeyan Sundaramoorthy,

Mentee Name and Contact Info

Abhimanyu Shekhawat,

Project Plan and Report

Problem Statement:-

  • There are two levels of endorsement policy that acts on a chaincode, channel(namespace) level, and key(collection) level.
  • When there are too many channels and collections it gets hard to manage all the data entities and knowing who has access to what.


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

The project can be found at

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


  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.

  • No labels