RandomnessStateUpdate
RandomnessStateUpdate
struct RandomnessStateUpdate
Randomness update
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
init(epoch:randomnessRound:randomBytes:randomnessObjInitialSharedVersion:)
init(epoch: UInt64, randomnessRound: UInt64, randomBytes: Data, randomnessObjInitialSharedVersion: Version)
epoch
var epoch: UInt64
Epoch of the randomness state update transaction
randomBytes
var randomBytes: Data
Updated random bytes
randomnessObjInitialSharedVersion
var randomnessObjInitialSharedVersion: Version
The initial version of the randomness object that it was shared at
randomnessRound
var randomnessRound: UInt64
Randomness round of the update
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func 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.
toJson()
func toJson() throws -> String
Convert this type to a JSON encoded string.