Documentation ¶
Index ¶
- Constants
- func EcdsaVerify(context map[string]interface{}) *wasmlib.ImportLib
- func FabricV14Verify(context map[string]interface{}) *wasmlib.ImportLib
- func GetSignatureSet(artifact *ValiadationArtifacts) []*protoutil.SignedData
- func NewValidatorLibs(context map[string]interface{}) []*wasmlib.ImportLib
- func ValidateChainCodeID(prp []byte, name string) error
- func ValidatePayload(info payloadInfo, ibtpBytes []byte) error
- func ValidateV14(proof, payload, policyBytes []byte, confByte []string, cid, from string) error
- type CallFunc
- type PolicyEvaluator
- type ValiadationArtifacts
- type ValidatorInfo
Constants ¶
View Source
const (
FABRIC_EVALUATOR = "fabric_evaluator"
)
Variables ¶
This section is empty.
Functions ¶
func EcdsaVerify ¶ added in v1.20.0
func FabricV14Verify ¶ added in v1.20.0
func GetSignatureSet ¶
func GetSignatureSet(artifact *ValiadationArtifacts) []*protoutil.SignedData
func NewValidatorLibs ¶ added in v1.20.0
func ValidateChainCodeID ¶
func ValidatePayload ¶
Types ¶
type PolicyEvaluator ¶
type PolicyEvaluator struct {
msp.IdentityDeserializer
}
func NewPolicyEvaluator ¶
func NewPolicyEvaluator(confBytes []string) (*PolicyEvaluator, error)
func (*PolicyEvaluator) Evaluate ¶
func (id *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error
type ValiadationArtifacts ¶ added in v1.20.0
type ValiadationArtifacts struct {
// contains filtered or unexported fields
}
func ExtractValidationArtifacts ¶
func ExtractValidationArtifacts(proof []byte) (*ValiadationArtifacts, error)
type ValidatorInfo ¶
type ValidatorInfo struct { ChainId string `json:"chain_id"` ConfByte []string `json:"conf_byte"` Policy string `json:"policy"` Cid string `json:"cid"` }
func UnmarshalValidatorInfo ¶
func UnmarshalValidatorInfo(validatorBytes []byte) (*ValidatorInfo, error)
Click to show internal directories.
Click to hide internal directories.