package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
ImplicitMetaAllPolicy defines an implicit meta policy whose sub_policy and key is policyname with rule ALL.
ImplicitMetaAnyPolicy defines an implicit meta policy whose sub_policy and key is policyname with rule ANY.
ImplicitMetaMajorityPolicy defines an implicit meta policy whose sub_policy and key is policyname with rule MAJORITY.
ImplicitMetaPolicyWithSubPolicy creates an implicitmeta policy.
NewImplicitMetaPolicy creates a new policy based on the policy bytes.
NewManagerImpl creates a new ManagerImpl with the given CryptoHelper.
SignaturePolicy defines a policy with key policyName and the given signature policy.
SignatureSetToValidIdentities takes a slice of pointers to signed data, checks the validity of the signature and of the signer and returns a slice of associated identities.
TemplateImplicitMetaAllPolicy returns TemplateImplicitMetaPolicy with cb.ImplicitMetaPolicy_ALL as the rule.
TemplateImplicitMetaAnyPolicy returns TemplateImplicitMetaPolicy with cb.ImplicitMetaPolicy_ANY as the rule.
TemplateImplicitMetaMajorityPolicy returns TemplateImplicitMetaPolicy with cb.ImplicitMetaPolicy_MAJORITY as the rule.
TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName It utilizes the policyName for the subPolicyName as well, as this is the standard usage pattern.
TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName and subPolicyName.
# Constants
ApplicationPrefix is used in the path of standard application policy paths.
BlockValidation is the label for the policy which should validate the block signatures for the channel.
ChannelApplicationAdmins is the label for the channel's application admin policy.
ChannelApplicationReaders is the label for the channel's application readers policy.
ChannelApplicationWriters is the label for the channel's application writers policy.
ChannelOrdererAdmins is the label for the channel's orderer admin policy.
ChannelOrdererReaders is the label for the channel's orderer readers policy.
ChannelOrdererWriters is the label for the channel's orderer writers policy.
ChannelPrefix is used in the path of standard channel policy managers.
ChannelReaders is the label for the channel's readers policy (encompassing both orderer and application readers).
ChannelWriters is the label for the channel's writers policy (encompassing both orderer and application writers).
OrdererPrefix is used in the path of standard orderer policy paths.
Path separator is used to separate policy names in paths.
# Structs
ManagerImpl is an implementation of Manager and configtx.ConfigHandler In general, it should only be referenced as an Impl for the configtx.ConfigManager.
StandardConfigPolicy implements the ConfigValue interface.
# Interfaces
ChannelPolicyManagerGetter is a support interface to get access to the policy manager of a given channel.
ConfigPolicy defines a common representation for different *cb.ConfigPolicy values.
Converter represents a policy which may be translated into a SignaturePolicyEnvelope.
InquireablePolicy is a Policy that one can inquire.
Manager is a read only subset of the policy ManagerImpl.
Policy is used to determine if a signature is valid.
Provider provides the backing implementation of a policy.
# Type aliases
PolicyManagerGetterFunc is a function adapter for ChannelPolicyManagerGetter.
PrincipalSet is a collection of MSPPrincipals.
PrincipalSets aggregates PrincipalSets.