Skip to main content

ObjectDigestInterface

type ObjectDigestInterface

The digest of an `Object`.

type ObjectDigestInterface interface {
// Returns whether the digest represents an object that is neither
// deleted nor wrapped.
IsAlive() bool
// Returns whether the digest represents a deleted object.
IsDeleted() bool
// Returns whether the digest represents an object wrapped in another
// object.
IsWrapped() bool
// Returns the next digest in byte-increasing order.
NextLexicographical() *ObjectDigest
// Returns the next digest in byte-increasing order, or `None` if
// the result would overflow.
NextLexicographicalOpt() **ObjectDigest
ToBase58() string
ToBytes() []byte
}