Skip to content

Commit

Permalink
doc:improve header.Verify godoc (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs authored Jun 28, 2024
1 parent 0a52c6e commit e917cab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions header.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type Header[H any] interface {
// Time returns time when header was created.
Time() time.Time
// Verify validates given untrusted Header against trusted Header.
// Verify should be able to validate both adjacent and non-adjacent headers.
Verify(H) error
// Validate performs stateless validation to check for missed/incorrect fields.
Validate() error
Expand Down

0 comments on commit e917cab

Please sign in to comment.