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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsensusTypeSolo = "solo"

	ConsensusTypeKafka = "kafka"

	BlockValidationPolicyKey = "BlockValidation"

	OrdererAdminsPolicy = "/Channel/Orderer/Admins"

	SignaturePolicyType = "Signature"

	ImplicitMetaPolicyType = "ImplicitMeta"
)

Variables

This section is empty.

Functions

func MakeChannelCreationTransaction

func MakeChannelCreationTransaction(channelID string, signer crypto.LocalSigner, conf *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) (*cb.ConfigUpdate, error)

func NewChannelGroup

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

func NewConsortiumGroup

func NewConsortiumGroup(conf *genesisconfig.Consortium) (*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 (*Bootstrapper) GenesisBlock

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

func (*Bootstrapper) GenesisBlockForChannel

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

Jump to

Keyboard shortcuts

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