package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Functions

And is a convenience method which utilizes NOutOf to produce And equivalent behavior.
Envelope builds an envelope message embedding a SignaturePolicy.
FromString takes a string representation of the policy, parses it and returns a SignaturePolicyEnvelope that implements that policy.
NOutOf creates a policy which requires N out of the slice of policies to evaluate to true.
Or is a convenience method which utilizes NOutOf to produce Or equivalent behavior.
SignedBy creates a SignaturePolicy requiring a given signer's signature.
SignedByAnyAdmin returns a policy that requires one valid signature from a admin of any of the orgs whose ids are listed in the supplied string array.
SignedByAnyClient returns a policy that requires one valid signature from a client of any of the orgs whose ids are listed in the supplied string array.
SignedByAnyMember returns a policy that requires one valid signature from a member of any of the orgs whose ids are listed in the supplied string array.
SignedByAnyPeer returns a policy that requires one valid signature from an orderer of any of the orgs whose ids are listed in the supplied string array.
SignedByMspAdmin creates a SignaturePolicyEnvelope requiring 1 signature from any admin of the specified MSP.
SignedByMspClient creates a SignaturePolicyEnvelope requiring 1 signature from any client of the specified MSP.
SignedByMspMember creates a SignaturePolicyEnvelope requiring 1 signature from any member of the specified MSP.
SignedByMspPeer creates a SignaturePolicyEnvelope requiring 1 signature from any peer of the specified MSP.

# Constants

Gate values.
Gate values.
Gate values.
Role values for principals.
Role values for principals.
Role values for principals.
Role values for principals.
Role values for principals.

# Variables

AcceptAllPolicy always evaluates to true.
MarshaledAcceptAllPolicy is the Marshaled version of AcceptAllPolicy.
MarshaledRejectAllPolicy is the Marshaled version of RejectAllPolicy.
RejectAllPolicy always evaluates to false.