Documentation ¶
Overview ¶
contains reusable logic that does not know about a CLI. Instead of exiting a program, functions here will return errors.
Index ¶
- func GenerateClusterRootQC(participants []bootstrap.NodeInfo, clusterBlock *cluster.Block) (*flow.QuorumCertificate, error)
- func GenerateExecutionState(dbDir string, accountKey flow.AccountPublicKey, tokenSupply cadence.UFix64, ...) (flow.StateCommitment, error)
- func GenerateKeys(algo crypto.SigningAlgorithm, n int, seeds [][]byte) ([]crypto.PrivateKey, error)
- func GenerateNetworkingKey(seed []byte) (crypto.PrivateKey, error)
- func GenerateNetworkingKeys(n int, seeds [][]byte) ([]crypto.PrivateKey, error)
- func GenerateRootBlock(chainID flow.ChainID, parentID flow.Identifier, height uint64, ...) *flow.Block
- func GenerateRootClusterBlocks(epoch uint64, clusters flow.ClusterList) []*cluster.Block
- func GenerateRootQC(block *flow.Block, participantData *ParticipantData) (*flow.QuorumCertificate, error)
- func GenerateRootResult(block *flow.Block, commit flow.StateCommitment) *flow.ExecutionResult
- func GenerateRootSeal(result *flow.ExecutionResult, setup *flow.EpochSetup, commit *flow.EpochCommit) *flow.Seal
- func GenerateServiceAccountPrivateKey(seed []byte) (flow.AccountPrivateKey, error)
- func GenerateStakingKey(seed []byte) (crypto.PrivateKey, error)
- func GenerateStakingKeys(n int, seeds [][]byte) ([]crypto.PrivateKey, error)
- func RunDKG(n int, seeds [][]byte) (model.DKGData, error)
- func RunFastKG(n int, seed []byte) (model.DKGData, error)
- type Participant
- type ParticipantData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateClusterRootQC ¶
func GenerateExecutionState ¶
func GenerateExecutionState( dbDir string, accountKey flow.AccountPublicKey, tokenSupply cadence.UFix64, chain flow.Chain, ) (flow.StateCommitment, error)
NOTE: this is now unused and should become part of another tool.
func GenerateKeys ¶
func GenerateKeys(algo crypto.SigningAlgorithm, n int, seeds [][]byte) ([]crypto.PrivateKey, error)
func GenerateNetworkingKey ¶
func GenerateNetworkingKey(seed []byte) (crypto.PrivateKey, error)
func GenerateNetworkingKeys ¶
func GenerateNetworkingKeys(n int, seeds [][]byte) ([]crypto.PrivateKey, error)
func GenerateRootBlock ¶
func GenerateRootClusterBlocks ¶
func GenerateRootClusterBlocks(epoch uint64, clusters flow.ClusterList) []*cluster.Block
func GenerateRootQC ¶
func GenerateRootQC(block *flow.Block, participantData *ParticipantData) (*flow.QuorumCertificate, error)
func GenerateRootResult ¶
func GenerateRootResult(block *flow.Block, commit flow.StateCommitment) *flow.ExecutionResult
func GenerateRootSeal ¶
func GenerateRootSeal(result *flow.ExecutionResult, setup *flow.EpochSetup, commit *flow.EpochCommit) *flow.Seal
func GenerateServiceAccountPrivateKey ¶
func GenerateServiceAccountPrivateKey(seed []byte) (flow.AccountPrivateKey, error)
NOTE: this is now unused and should become part of another tool.
func GenerateStakingKey ¶
func GenerateStakingKey(seed []byte) (crypto.PrivateKey, error)
func GenerateStakingKeys ¶
func GenerateStakingKeys(n int, seeds [][]byte) ([]crypto.PrivateKey, error)
Types ¶
type Participant ¶
type Participant struct { bootstrap.NodeInfo RandomBeaconPrivKey crypto.PrivateKey }
type ParticipantData ¶
type ParticipantData struct { Participants []Participant Lookup map[flow.Identifier]flow.DKGParticipant GroupKey crypto.PublicKey }
func (*ParticipantData) Identities ¶
func (pd *ParticipantData) Identities() flow.IdentityList
Click to show internal directories.
Click to hide internal directories.