Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorCodeRecordCountMismatch = "chain.record_count_mismatch" ErrorCodeHeadHashMismatch = "chain.head_hash_mismatch" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Verification ¶
type Verification struct {
Intact bool `json:"intact"`
Count int `json:"count"`
BreakPoint string `json:"break_point,omitempty"`
BreakIndex int `json:"break_index,omitempty"`
HeadHash string `json:"head_hash,omitempty"`
}
func Verify ¶
func Verify(c *Chain) (*Verification, error)
func VerifyRange ¶
func VerifyRange(c *Chain, from, to time.Time) (*Verification, error)
func VerifyRangeWithOptions ¶ added in v0.5.0
func VerifyRangeWithOptions(c *Chain, from, to time.Time, opts VerifyOpts) (*Verification, error)
func VerifyWithOptions ¶ added in v0.5.0
func VerifyWithOptions(c *Chain, opts VerifyOpts) (*Verification, error)
type VerifyOpts ¶ added in v0.5.0
type VerifyOpts struct {
Strict bool
}
Click to show internal directories.
Click to hide internal directories.