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
// Convert this type to BCS encoded bytes.
ToBcs() ([]byte, error)
ToBytes() []byte
// Render this type as human-readable text.
//
// Some types also print this through the binding's native string conversion; this
// method is the spelling every object type has.
//
// The layout is meant for reading and can change between releases. Use the JSON or
// BCS conversions for output that gets parsed.
ToDisplayString() string
// Convert this type to a JSON encoded string.
ToJson() (string, error)
}