...

Package genesis

import "github.com/hyperledger/fabric/common/genesis"
Overview
Index

Overview ▾

type Factory

Factory facilitates the creation of genesis blocks.

type Factory interface {
    // Block returns a genesis block for a given channel ID.
    Block(channelID string) *cb.Block
}

func NewFactoryImpl

func NewFactoryImpl(channelGroup *cb.ConfigGroup) Factory

NewFactoryImpl creates a new Factory.