Documentation ¶
Index ¶
- func CreateAnchorPeersUpdate(conf *genesisconfig.Profile, channelID string, asOrg string) (*common.Envelope, error)
- func CreateChannelCreateTx(conf, baseProfile *genesisconfig.Profile, channelID string) ([]byte, error)
- func CreateGenesisBlock(config *genesisconfig.Profile, channelID string) ([]byte, error)
- func CreateGenesisBlockForOrderer(config *genesisconfig.Profile, channelID string) ([]byte, error)
- func GenerateMspDir(mspDir string, config *msp.MSPConfig) error
- func InspectBlock(data []byte) (string, error)
- func InspectChannelCreateTx(data []byte) (string, error)
- func InspectOrg(conf *genesisconfig.TopLevel, orgName string) (string, error)
- func TopLevelFromYaml(yamlPath string) (*genesisconfig.TopLevel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAnchorPeersUpdate ¶
func CreateAnchorPeersUpdate(conf *genesisconfig.Profile, channelID string, asOrg string) (*common.Envelope, error)
CreateAnchorPeersUpdate creates an anchor peers update transaction
func CreateChannelCreateTx ¶
func CreateChannelCreateTx(conf, baseProfile *genesisconfig.Profile, channelID string) ([]byte, error)
CreateChannelCreateTx creates a Fabric transaction for creating a channel
func CreateGenesisBlock ¶
func CreateGenesisBlock(config *genesisconfig.Profile, channelID string) ([]byte, error)
CreateGenesisBlock creates a genesis block for a channel
func CreateGenesisBlockForOrderer ¶
func CreateGenesisBlockForOrderer(config *genesisconfig.Profile, channelID string) ([]byte, error)
CreateGenesisBlockForOrderer creates a genesis block for a channel
func GenerateMspDir ¶
GenerateMspDir generates a MSP directory, using values from the provided MSP config. The intended usage is within the scope of creating a genesis block. This means private keys are currently not handled.
func InspectChannelCreateTx ¶
InspectChannelCreateTx inspects a Fabric transaction for creating a channel
func InspectOrg ¶
func InspectOrg(conf *genesisconfig.TopLevel, orgName string) (string, error)
InspectOrg inspects the specified organization's definition
func TopLevelFromYaml ¶
func TopLevelFromYaml(yamlPath string) (*genesisconfig.TopLevel, error)
TopLevelFromYaml constructs top level configuration from standard configtxgen yaml file
Types ¶
This section is empty.