serialization

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeState

func DeserializeState(serializedState map[statekey.StateKey][]byte) (state.State, error)

DeserializeState deserializes the given map of state keys to byte slices into a State object.

func RandomAccumulationHistory

func RandomAccumulationHistory(t *testing.T) state.AccumulationHistory

func RandomAccumulationQueue

func RandomAccumulationQueue(t *testing.T) state.AccumulationQueue

func RandomBlockState

func RandomBlockState(t *testing.T) state.BlockState

func RandomCoreAssignments

func RandomCoreAssignments(t *testing.T) state.CoreAssignments

func RandomCoreAuthorizersPool

func RandomCoreAuthorizersPool(t *testing.T) state.CoreAuthorizersPool

func RandomEntropyPool

func RandomEntropyPool(t *testing.T) state.EntropyPool

func RandomEpochKeys

func RandomEpochKeys(t *testing.T) crypto.EpochKeys

func RandomHashSet

func RandomHashSet(t *testing.T, maxSize int) map[crypto.Hash]struct{}

func RandomJudgements

func RandomJudgements(t *testing.T) state.Judgements

func RandomPendingAuthorizersQueues

func RandomPendingAuthorizersQueues(t *testing.T) state.PendingAuthorizersQueues

func RandomPrivilegedServices

func RandomPrivilegedServices() service.PrivilegedServices

func RandomSafroleStateWithEpochKeys

func RandomSafroleStateWithEpochKeys(t *testing.T) safrole.State

func RandomSafroleStateWithTicketBodies

func RandomSafroleStateWithTicketBodies(t *testing.T) safrole.State

func RandomServiceAccount

func RandomServiceAccount(t *testing.T) service.ServiceAccount

func RandomState

func RandomState(t *testing.T) state.State

func RandomStateKey

func RandomStateKey(t *testing.T) statekey.StateKey

func RandomTicketBodies

func RandomTicketBodies(t *testing.T) safrole.TicketsBodies

func RandomTickets

func RandomTickets(t *testing.T) []block.Ticket

func RandomValidatorState

func RandomValidatorState(t *testing.T) validator.ValidatorState

func RandomValidatorStatistics

func RandomValidatorStatistics() validator.ValidatorStatistics

func RandomValidatorStatisticsState

func RandomValidatorStatisticsState() validator.ActivityStatisticsState

func RandomValidatorsData

func RandomValidatorsData(t *testing.T) safrole.ValidatorsData

func RandomWorkReport

func RandomWorkReport(t *testing.T) block.WorkReport

func RandomWorkResult

func RandomWorkResult(t *testing.T) block.WorkResult

func SerializeState

func SerializeState(s state.State) (map[statekey.StateKey][]byte, error)

SerializeState serializes the given state into a map of state keys to byte arrays, for merklization. Graypaper 0.5.4.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL