Skip to main content

CheckpointDigest

type CheckpointDigest​

The digest of a `CheckpointSummary`.

type CheckpointDigest struct {
// contains filtered or unexported fields
}

func CheckpointDigestFromBase58​

func CheckpointDigestFromBase58(base58 string) (*CheckpointDigest, error)

func CheckpointDigestFromBcs​

func CheckpointDigestFromBcs(bcs []byte) (*CheckpointDigest, error)

Create this type from BCS encoded bytes.

func CheckpointDigestFromBytes​

func CheckpointDigestFromBytes(bytes []byte) (*CheckpointDigest, error)

func CheckpointDigestFromJson​

func CheckpointDigestFromJson(json string) (*CheckpointDigest, error)

Create this type from a JSON encoded string.

func CheckpointDigestRandom​

func CheckpointDigestRandom() *CheckpointDigest

func LiftFromExternalCheckpointDigest​

func LiftFromExternalCheckpointDigest(handle uint64) *CheckpointDigest

func (*CheckpointDigest) DebugString​

func (_self *CheckpointDigest) DebugString() string

func (*CheckpointDigest) Destroy​

func (object *CheckpointDigest) Destroy()

func (*CheckpointDigest) Eq​

func (_self *CheckpointDigest) Eq(other *CheckpointDigest) bool

func (*CheckpointDigest) Hash​

func (_self *CheckpointDigest) Hash() uint64

func (*CheckpointDigest) Ne​

func (_self *CheckpointDigest) Ne(other *CheckpointDigest) bool

func (*CheckpointDigest) NextLexicographical​

func (_self *CheckpointDigest) NextLexicographical() *CheckpointDigest

Returns the next digest in byte-increasing order.

func (*CheckpointDigest) NextLexicographicalOpt​

func (_self *CheckpointDigest) NextLexicographicalOpt() **CheckpointDigest

Returns the next digest in byte-increasing order, or `None` if the result would overflow.

func (*CheckpointDigest) String​

func (_self *CheckpointDigest) String() string

func (*CheckpointDigest) ToBase58​

func (_self *CheckpointDigest) ToBase58() string

func (*CheckpointDigest) ToBcs​

func (_self *CheckpointDigest) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (*CheckpointDigest) ToBytes​

func (_self *CheckpointDigest) ToBytes() []byte

func (*CheckpointDigest) ToDisplayString​

func (_self *CheckpointDigest) ToDisplayString() string

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.

func (*CheckpointDigest) ToJson​

func (_self *CheckpointDigest) ToJson() (string, error)

Convert this type to a JSON encoded string.