handlers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CircuitHandler

type CircuitHandler struct {
	SupportedCircuits map[circuits.CircuitID]types.CircuitData
	// contains filtered or unexported fields
}

CircuitHandler is handler to verify circuit information of provided proof

func (*CircuitHandler) Process

func (h *CircuitHandler) Process(m *types.ZeroKnowledgeProof) (err error)

Process applies handler logic on provided message

func (*CircuitHandler) SetNext

func (h *CircuitHandler) SetNext(next ProofHandler) ProofHandler

SetNext sets next handler to the chain of handlers

type MetadataProofHandler

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

MetadataProofHandler is handler to extract metadata of the provided proof

func (*MetadataProofHandler) Process

func (h *MetadataProofHandler) Process(m *types.ZeroKnowledgeProof) (err error)

Process applies handler logic on provided message

func (*MetadataProofHandler) SetNext

SetNext sets next handler to the chain of handlers

type ProofHandler

type ProofHandler interface {
	Process(p *types.ZeroKnowledgeProof) (err error)
	SetNext(ProofHandler) ProofHandler
}

ProofHandler is a handler for proof processing

type VerificationHandler

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

VerificationHandler is handler to check verification of the provided proof

func (*VerificationHandler) Process

func (h *VerificationHandler) Process(m *types.ZeroKnowledgeProof) (err error)

Process applies handler logic on provided message

func (*VerificationHandler) SetNext

SetNext sets next handler to the chain of handlers

type ZeroKnowledgeProofHandler

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

ZeroKnowledgeProofHandler is handler to check message type

func (*ZeroKnowledgeProofHandler) Process

Process applies handler logic on provided message

func (*ZeroKnowledgeProofHandler) SetNext

SetNext sets next handler to the chain of handlers

Jump to

Keyboard shortcuts

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