Skip to main content

CheckpointContentsV1

type CheckpointContentsV1​

CheckpointContents are the transactions included in an upcoming checkpoint. They must have already been causally ordered. Since the causal order algorithm is the same among validators, we expect all honest validators to come up with the same order for each checkpoint content.

BCS​

The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

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

func CheckpointContentsV1FromBcs​

func CheckpointContentsV1FromBcs(bcs []byte) (*CheckpointContentsV1, error)

Create this type from BCS encoded bytes.

func CheckpointContentsV1FromJson​

func CheckpointContentsV1FromJson(json string) (*CheckpointContentsV1, error)

Create this type from a JSON encoded string.

func LiftFromExternalCheckpointContentsV1​

func LiftFromExternalCheckpointContentsV1(handle uint64) *CheckpointContentsV1

func NewCheckpointContentsV1​

func NewCheckpointContentsV1(transactionInfo []*CheckpointTransactionInfo) *CheckpointContentsV1

func (*CheckpointContentsV1) Destroy​

func (object *CheckpointContentsV1) Destroy()

func (*CheckpointContentsV1) IsEmpty​

func (_self *CheckpointContentsV1) IsEmpty() bool

Whether this checkpoint has no transactions.

func (*CheckpointContentsV1) Len​

func (_self *CheckpointContentsV1) Len() uint64

The number of transactions in this checkpoint.

func (*CheckpointContentsV1) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*CheckpointContentsV1) ToDisplayString​

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

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

Convert this type to a JSON encoded string.

func (*CheckpointContentsV1) Transactions​

func (_self *CheckpointContentsV1) Transactions() []*CheckpointTransactionInfo