Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KnownClusters ¶
type KnownClusters struct {
// contains filtered or unexported fields
}
KnownClusters is a registry of known clusters.
func LoadKnownClusters ¶
func LoadKnownClusters() (KnownClusters, error)
LoadKnownClusters loads cluster specs.
func LoadKnownClustersFromDir ¶
func LoadKnownClustersFromDir(dir string) (KnownClusters, error)
LoadKnownClustersFromDir discovers clusters from the given directory.
func (KnownClusters) Clusters ¶
func (k KnownClusters) Clusters() map[string]*Manifest
Clusters returns a list of known clusters.
func (KnownClusters) GetCluster ¶
func (k KnownClusters) GetCluster(pubkey kyber.Point) *Manifest
GetCluster returns the cluster for the given BLS public key.
Returns nil if no matching cluster was found.
type Manifest ¶
type Manifest struct {
TSS crypto.TBLSScheme `json:"tss"` // Threshold signature scheme params
Members []crypto.BLSPubkeyHex `json:"members"` // DV consensus BLS pubkeys
ENRs []string `json:"enrs"` // Charon peer ENRs
}
Manifest captures the public cryptographic and networking info required to connect to a DV cluster.
func LoadManifest ¶
LoadManifest reads the manifest file from the given file path.
func (*Manifest) ParsedENRs ¶
ParsedENRs returns the decoded list of ENRs in a manifest.
Click to show internal directories.
Click to hide internal directories.