Versions in this module Expand all Collapse all v1 v1.0.1 Jun 8, 2023 Changes in this version + const FabricRuleAddr + const HappyRuleAddr + const SimFabricRuleAddr + type ECDSASignature struct + R *big.Int + S *big.Int + type Engine interface + Validate func(address, from string, proof, payload []byte, validators string) (bool, uint64, error) + type FabSimValidator struct + func NewFabSimValidator(logger logrus.FieldLogger) *FabSimValidator + func (vlt *FabSimValidator) Verify(from string, proof, payload []byte, validators string) (bool, uint64, error) + type FabV14Validator struct + func NewFabV14Validator(logger logrus.FieldLogger) *FabV14Validator + func (vlt *FabV14Validator) EvaluateSignedData(signedData []*protoutil.SignedData, ...) (bool, uint64, error) + func (vlt *FabV14Validator) Verify(from string, proof, payload []byte, validators string) (bool, uint64, error) + type HappyValidator struct + func (h *HappyValidator) Verify(from string, proof, payload []byte, validators string) (bool, uint64, error) + type Ledger interface + GetCode func(*types.Address) []byte + type ValidationEngine struct + func NewValidationEngine(ledger Ledger, instances *sync.Map, logger logrus.FieldLogger, gasLimit uint64) *ValidationEngine + func (ve *ValidationEngine) Validate(address, from string, proof, payload []byte, validators string) (bool, uint64, error) + type Validator interface + Verify func(from string, proof, payload []byte, validators string) (bool, uint64, error) + type ValidatorPool struct + func NewValidationPool(size int) *ValidatorPool + func (pool *ValidatorPool) Add(validator Validator) + func (pool *ValidatorPool) GetValidator() Validator + func (pool *ValidatorPool) SetValidator(vlt Validator) + type ValidatorPools struct + func NewValidationPools() *ValidatorPools + func (p *ValidatorPools) GetPool(address string) (*ValidatorPool, bool) + func (p *ValidatorPools) SetPool(address string, pool *ValidatorPool) + type WasmValidator struct + func NewWasmValidator(code []byte, logger logrus.FieldLogger, gasLimit uint64) *WasmValidator + func (vlt *WasmValidator) Verify(from string, proof, payload []byte, validators string) (bool, uint64, error)