validator

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueValidate

func IssueValidate(c context.Context, ctx *Context) error

func TransferActionValidate

func TransferActionValidate(c context.Context, ctx *Context) error

TransferActionValidate validates the transfer action

func TransferBalanceValidate

func TransferBalanceValidate(c context.Context, ctx *Context) error

TransferBalanceValidate checks that the sum of the inputs is equal to the sum of the outputs

func TransferHTLCValidate

func TransferHTLCValidate(c context.Context, ctx *Context) error

TransferHTLCValidate checks the validity of the HTLC scripts, if any

func TransferSignatureValidate

func TransferSignatureValidate(c context.Context, ctx *Context) error

TransferSignatureValidate validates the signatures for the inputs spent by an action

Types

type ActionDeserializer

type ActionDeserializer struct{}

func (*ActionDeserializer) DeserializeActions

type Validator

func NewValidator

func NewValidator(
	logger logging.Logger,
	pp *setup.PublicParams,
	deserializer driver.Deserializer,
	extraTransferValidators []ValidateTransferFunc,
	extraIssuerValidators []ValidateIssueFunc,
	extraAuditorValidators []ValidateAuditingFunc,
) *Validator

Jump to

Keyboard shortcuts

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