seed

package
v0.24.4-an-grpc-fix Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromParentSignature

func FromParentSignature(indices []uint32, sigData []byte) ([]byte, error)

FromParentSignature reads the raw random seed from a main consensus QC sigData. The sigData is an RLP encoded structure that is part of QuorumCertificate. The indices can be used to generate task-specific seeds from the same signature.

func FromRandomSource

func FromRandomSource(indices []uint32, sor []byte) ([]byte, error)

FromRandomSource generates a task-specific seed (task is determined by indices).

Types

This section is empty.

Jump to

Keyboard shortcuts

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