encoder

package
v0.0.0-...-95b87ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsensusTypeSolo = "solo"

	ConsensusTypeKafka = "kafka"

	ConsensusTypeEtcdRaft = "etcdraft"

	BlockValidationPolicyKey = "BlockValidation"

	OrdererAdminsPolicy = "/Channel/Orderer/Admins"

	SignaturePolicyType = "Signature"

	ImplicitMetaPolicyType = "ImplicitMeta"
)

Variables

This section is empty.

Functions

func AddPolicies

func AddPolicies(cg *cb.ConfigGroup, policyMap map[string]*genesisconfig.Policy, modPolicy string) error

func ConfigTemplateFromGroup

func ConfigTemplateFromGroup(conf *genesisconfig.Profile, cg *cb.ConfigGroup) (*cb.ConfigGroup, error)

func DefaultConfigTemplate

func DefaultConfigTemplate(conf *genesisconfig.Profile) (*cb.ConfigGroup, error)

func HasSkippedForeignOrgs

func HasSkippedForeignOrgs(conf *genesisconfig.Profile) error

func MakeChannelCreationTransaction

func MakeChannelCreationTransaction(
	channelID string,
	signer identity.SignerSerializer,
	conf *genesisconfig.Profile,
) (*cb.Envelope, error)

func MakeChannelCreationTransactionFromTemplate

func MakeChannelCreationTransactionFromTemplate(
	channelID string,
	signer identity.SignerSerializer,
	conf *genesisconfig.Profile,
	template *cb.ConfigGroup,
) (*cb.Envelope, error)

func MakeChannelCreationTransactionWithSystemChannelContext

func MakeChannelCreationTransactionWithSystemChannelContext(
	channelID string,
	signer identity.SignerSerializer,
	conf,
	systemChannelConf *genesisconfig.Profile,
) (*cb.Envelope, error)

func NewApplicationGroup

func NewApplicationGroup(conf *genesisconfig.Application) (*cb.ConfigGroup, error)

func NewApplicationOrgGroup

func NewApplicationOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)

func NewChannelCreateConfigUpdate

func NewChannelCreateConfigUpdate(channelID string, conf *genesisconfig.Profile, templateConfig *cb.ConfigGroup) (*cb.ConfigUpdate, error)

func NewChannelGroup

func NewChannelGroup(conf *genesisconfig.Profile) (*cb.ConfigGroup, error)

func NewConsortiumGroup

func NewConsortiumGroup(conf *genesisconfig.Consortium) (*cb.ConfigGroup, error)

func NewConsortiumOrgGroup

func NewConsortiumOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)

func NewConsortiumsGroup

func NewConsortiumsGroup(conf map[string]*genesisconfig.Consortium) (*cb.ConfigGroup, error)

func NewOrdererGroup

func NewOrdererGroup(conf *genesisconfig.Orderer) (*cb.ConfigGroup, error)

func NewOrdererOrgGroup

func NewOrdererOrgGroup(conf *genesisconfig.Organization) (*cb.ConfigGroup, error)

Types

type Bootstrapper

type Bootstrapper struct {
	// contains filtered or unexported fields
}

func New

func New(config *genesisconfig.Profile) *Bootstrapper

func NewBootstrapper

func NewBootstrapper(config *genesisconfig.Profile) (*Bootstrapper, error)

func (*Bootstrapper) GenesisBlock

func (bs *Bootstrapper) GenesisBlock() *cb.Block

func (*Bootstrapper) GenesisBlockForChannel

func (bs *Bootstrapper) GenesisBlockForChannel(channelID string) *cb.Block

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL