Documentation ¶
Index ¶
Constants ¶
View Source
const ( GateAnd = "And" GateOr = "Or" GateOutOf = "OutOf" RoleAdmin = "admin" RoleMember = "member" RoleClient = "client" RolePeer = "peer" RoleOrderer = "orderer" )
Gate values
Variables ¶
View Source
var AcceptAllPolicy *cb.SignaturePolicyEnvelope
AcceptAllPolicy always evaluates to true
Functions ¶
func FromString ¶
func FromString(policy string) (*cb.SignaturePolicyEnvelope, error)
func NOutOf ¶
func NOutOf(n int32, policies []*cb.SignaturePolicy) *cb.SignaturePolicy
NOutOf creates a policy which requires N out of the slice of policies to evaluate to true
func SignedBy ¶
func SignedBy(index int32) *cb.SignaturePolicy
SignedBy creates a SignaturePolicy requiring a given signer's signature
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.