Skip to main content

ConsensusCommitDigest

type ConsensusCommitDigest​

The digest of a consensus commit.

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

func ConsensusCommitDigestFromBase58​

func ConsensusCommitDigestFromBase58(base58 string) (*ConsensusCommitDigest, error)

func ConsensusCommitDigestFromBcs​

func ConsensusCommitDigestFromBcs(bcs []byte) (*ConsensusCommitDigest, error)

Create this type from BCS encoded bytes.

func ConsensusCommitDigestFromBytes​

func ConsensusCommitDigestFromBytes(bytes []byte) (*ConsensusCommitDigest, error)

func ConsensusCommitDigestFromJson​

func ConsensusCommitDigestFromJson(json string) (*ConsensusCommitDigest, error)

Create this type from a JSON encoded string.

func ConsensusCommitDigestRandom​

func ConsensusCommitDigestRandom() *ConsensusCommitDigest

func LiftFromExternalConsensusCommitDigest​

func LiftFromExternalConsensusCommitDigest(handle uint64) *ConsensusCommitDigest

func (*ConsensusCommitDigest) DebugString​

func (_self *ConsensusCommitDigest) DebugString() string

func (*ConsensusCommitDigest) Destroy​

func (object *ConsensusCommitDigest) Destroy()

func (*ConsensusCommitDigest) Eq​

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

func (*ConsensusCommitDigest) Hash​

func (_self *ConsensusCommitDigest) Hash() uint64

func (*ConsensusCommitDigest) Ne​

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

func (*ConsensusCommitDigest) NextLexicographical​

func (_self *ConsensusCommitDigest) NextLexicographical() *ConsensusCommitDigest

Returns the next digest in byte-increasing order.

func (*ConsensusCommitDigest) NextLexicographicalOpt​

func (_self *ConsensusCommitDigest) NextLexicographicalOpt() **ConsensusCommitDigest

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

func (*ConsensusCommitDigest) String​

func (_self *ConsensusCommitDigest) String() string

func (*ConsensusCommitDigest) ToBase58​

func (_self *ConsensusCommitDigest) ToBase58() string

func (*ConsensusCommitDigest) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*ConsensusCommitDigest) ToBytes​

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

func (*ConsensusCommitDigest) ToDisplayString​

func (_self *ConsensusCommitDigest) 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 (*ConsensusCommitDigest) ToJson​

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

Convert this type to a JSON encoded string.