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 for this type is defined by the following ABNF:

```text checkpoint-contents-v1 = (vector execution-digests) ; transaction and effect digests (vector (vector user-signature)) ; set of user signatures for each ; transaction. MUST be the same ; length as the vector of digests

execution-digests = transaction-digest transaction-effects-digest ; transaction, effects ```

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 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) Transactions​

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