Documentation
¶
Overview ¶
Package blockchain provides utilities for blockchain configuration and deployment.
Package blockchain provides helper functions for blockchain operations including peer management, URI handling, and blockchain state queries.
Index ¶
- func ConvertToBLSProofOfPossession(publicKey, proofOfPossesion string) (signer.ProofOfPossession, error)
- func GetAggregatorExtraPeers(app *application.Lux, clusterName string) ([]info.Peer, error)
- func GetAggregatorNetworkUris(app *application.Lux, clusterName string) ([]string, error)
- func GetBlockchainTimestamp(network models.Network) (time.Time, error)
- func GetKeyForChangeOwner(app *application.Lux, network models.Network) (string, error)
- func GetSubnet(subnetID ids.ID, network models.Network) (interface{}, error)
- func GetSubnetIDFromBlockchainID(blockchainID ids.ID, network models.Network) (ids.ID, error)
- func PromptValidatorBalance(app *application.Lux, availableBalance float64, prompt string) (float64, error)
- func UpdatePChainHeight(title string) error
- func UrisToPeers(uris []string) ([]info.Peer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToBLSProofOfPossession ¶
func ConvertToBLSProofOfPossession(publicKey, proofOfPossesion string) (signer.ProofOfPossession, error)
ConvertToBLSProofOfPossession converts public key and proof of possession strings to a ProofOfPossession struct.
func GetAggregatorExtraPeers ¶
GetAggregatorExtraPeers returns a list of peers for the aggregator from the cluster.
func GetAggregatorNetworkUris ¶
func GetAggregatorNetworkUris(app *application.Lux, clusterName string) ([]string, error)
GetAggregatorNetworkUris returns network URIs for the specified cluster.
func GetBlockchainTimestamp ¶
GetBlockchainTimestamp returns the current timestamp from the blockchain.
func GetKeyForChangeOwner ¶
GetKeyForChangeOwner prompts for and returns a key address for change ownership.
func GetSubnetIDFromBlockchainID ¶
GetSubnetIDFromBlockchainID returns the subnet ID that validates the given blockchain.
func PromptValidatorBalance ¶
func PromptValidatorBalance(app *application.Lux, availableBalance float64, prompt string) (float64, error)
PromptValidatorBalance prompts the user to enter a validator balance amount.
func UpdatePChainHeight ¶
UpdatePChainHeight displays a progress bar while waiting for P-Chain height update.
Types ¶
This section is empty.