RandomnessStateUpdate
type RandomnessStateUpdate
Randomness update
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text randomness-state-update = u64 u64 bytes u64 ```
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 JSON encoded string.
func (*RandomnessStateUpdate) Destroy
func (r *RandomnessStateUpdate) Destroy()