verify

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainError added in v1.0.8

type ChainError struct {
	Code ErrorCode
	Err  error
}

func (*ChainError) Error added in v1.0.8

func (e *ChainError) Error() string

func (*ChainError) Unwrap added in v1.0.8

func (e *ChainError) Unwrap() error

type ErrorCode added in v1.0.8

type ErrorCode string
const (
	ErrorCodeUnknown            ErrorCode = "unknown"
	ErrorCodeInvalidInput       ErrorCode = "invalid_input"
	ErrorCodeReadChain          ErrorCode = "read_chain"
	ErrorCodeParseChain         ErrorCode = "parse_chain"
	ErrorCodeVerifyChainFailure ErrorCode = "verify_chain_failure"
)

func ErrorCodeFor added in v1.0.8

func ErrorCodeFor(err error) ErrorCode

type Result

type Result struct {
	Intact             bool   `json:"intact"`
	Count              int    `json:"count"`
	HeadHash           string `json:"head_hash,omitempty"`
	BreakPoint         string `json:"break_point,omitempty"`
	BreakIndex         int    `json:"break_index,omitempty"`
	Reason             string `json:"reason"`
	VerificationMode   string `json:"verification_mode,omitempty"`
	AuthenticityStatus string `json:"authenticity_status,omitempty"`
}

func Chain

func Chain(path string) (Result, error)

func ChainWithPublicKey added in v1.0.8

func ChainWithPublicKey(path string, publicKey proof.PublicKey) (Result, error)

Jump to

Keyboard shortcuts

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