Gopher2600/digest/digest.go
steve 7de8c5ba14 o database
- improved documentation
    - some tidying up

o regression
    - improved documentation

o digest
    - Digest interface now requires Hash() rather than String()
    - warning: use of String() may now break things
2020-01-05 18:58:41 +00:00

14 lines
643 B
Go

// Package digest contain implementations of television protocol interfaces,
// namely PixelRenderer and AudioMixer, such that a crypographic hash is
// produced. The hash can then be used to compare output input from subsequent
// emulation executions - if a new hash differs from a previously recorded
// value then something has changed. We use this as the basis for regression
// tests and playback verification.
package digest
// Digest implementations should return a cryptographic hash in response to a
// String() request. Generation of the hash achieved via another interface.
type Digest interface {
Hash() string
ResetDigest()
}