Sunday, November 3, 2019

Fabric channel configuration structure again

Each channel configuration is a nasty nested json file.


The top level has three elements, they are data, header and metadata.

Element header contains the data_hash, number and previous_hash, this is basically the block info, where the block sits (number),  the block hash and previous hash, these.

Element metadata for the system channel is empty. It also has metadata as its member which in turn is a list.

Element data contains yet another element named data which contains payload and signature.

What is important is really the payload which contains again data and header just like the very top structure.

In the payload.header element, we can see the channel_header and signature_header.

The data.config element is where everything is defined, channel_group is the starting point of the channel configuration. For the detailed structure from this point on please refer to the this blog

config.channel_group is the start of the system channel which is the very first channel created on a given orderering cluster. 

No comments:

Post a Comment