Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyProvider ¶
func NewPolicyProvider(deserializer msp.IdentityDeserializer) policies.Provider
NewPolicyProvider provides a policy generator for cauthdsl type policies
Types ¶
type EnvelopeBasedPolicyProvider ¶
type EnvelopeBasedPolicyProvider struct {
Deserializer msp.IdentityDeserializer
}
EnvelopeBasedPolicyProvider allows to create a new policy from SignaturePolicyEnvelope struct instead of []byte
func (*EnvelopeBasedPolicyProvider) NewPolicy ¶
func (pp *EnvelopeBasedPolicyProvider) NewPolicy(sigPolicy *cb.SignaturePolicyEnvelope) (policies.Policy, error)
NewPolicy creates a new policy from the policy envelope
Click to show internal directories.
Click to hide internal directories.