Skip to main content

RandomnessStateUpdate

type RandomnessStateUpdate​

Randomness update

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 RandomnessStateUpdate struct {
// Epoch of the randomness state update transaction
Epoch uint64
// Randomness round of the update
RandomnessRound uint64
// Updated random bytes
RandomBytes []byte
// The initial version of the randomness object that it was shared at
RandomnessObjInitialSharedVersion *Version
}

func RandomnessStateUpdateFromBcs​

func RandomnessStateUpdateFromBcs(bcs []byte) (RandomnessStateUpdate, error)

Create this type from BCS encoded bytes.

func RandomnessStateUpdateFromJson​

func RandomnessStateUpdateFromJson(json string) (RandomnessStateUpdate, error)

Create this type from a JSON encoded string.

func (*RandomnessStateUpdate) Destroy​

func (r *RandomnessStateUpdate) Destroy()

func (RandomnessStateUpdate) ToBcs​

func (_self RandomnessStateUpdate) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (RandomnessStateUpdate) ToDisplayString​

func (_self RandomnessStateUpdate) ToDisplayString() string

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

func (RandomnessStateUpdate) ToJson​

func (_self RandomnessStateUpdate) ToJson() (string, error)

Convert this type to a JSON encoded string.