instructions

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProcessor

type DefaultProcessor struct {
	// contains filtered or unexported fields
}

func NewDefaultProcessor

func NewDefaultProcessor(port int, policyStorage *policy.Storage, iSAndD node.IdentifierSignerAndDecrypter) DefaultProcessor

NewDefaultProcessor creates a processor that forwards instruction actions to the configured extension endpoint.

func (DefaultProcessor) Process

Process routes the instruction action to the external extension at threshold and crafts the final vote response when the action ends.

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(f ProcessorFunction, iSAndD node.IdentifierSignerAndDecrypter, pStorage *policy.Storage, immediateResult bool) Processor

NewProcessor builds a Processor that wraps the provided instruction handler with common preprocessing and validation logic.

func (Processor) Process

func (p Processor) Process(a *types.Action) types.ActionResult

Process validates an instruction action and routes it through the configured instruction handler, packaging the result for the router.

type ProcessorFunction

type ProcessorFunction func(submissionTag types.SubmissionTag, dataFixed *instruction.DataFixed, variableMessages []hexutil.Bytes, signers []common.Address, signingPolicy *cpolicy.SigningPolicy) (data []byte, additionalResultStatus []byte, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL