Skip to content
Snippets Groups Projects
Select Git revision
  • 9696c8997cb785c5f0d8f1a98d7da74b56a83e7c
  • without_tipselection default
  • develop protected
  • fix/grafana-local-dashboard
  • wasp
  • fix/dashboard-explorer-freeze
  • master
  • feat/timerqueue
  • test/sync_debug_and_650
  • feat/sync_revamp_inv
  • wip/sync
  • tool/db-recovery
  • portcheck/fix
  • fix/synchronization
  • feat/new-dashboard-analysis
  • feat/refactored-analysis-dashboard
  • feat/new-analysis-dashboard
  • test/demo-prometheus-fpc
  • prometheus_metrics
  • wip/analysis-server
  • merge/fpc-test-value-transfer
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
28 results

parameters.go

Blame
  • user avatar
    capossele authored
    e5d76242
    History
    parameters.go 915 B
    package drng
    
    import (
    	flag "github.com/spf13/pflag"
    )
    
    const (
    	// CfgDRNGInstanceID defines the config flag of the DRNG instanceID.
    	CfgDRNGInstanceID = "drng.instanceId"
    	// CfgDRNGThreshold defines the config flag of the DRNG threshold.
    	CfgDRNGThreshold = "drng.threshold"
    	// CfgDRNGDistributedPubKey defines the config flag of the DRNG distributed Public Key.
    	CfgDRNGDistributedPubKey = "drng.distributedPubKey"
    	// CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities.
    	CfgDRNGCommitteeMembers = "drng.committeeMembers"
    )
    
    func init() {
    	flag.Uint32(CfgDRNGInstanceID, 1, "instance ID of the drng instance")
    	flag.Uint32(CfgDRNGThreshold, 3, "BLS threshold of the drng")
    	flag.String(CfgDRNGDistributedPubKey, "", "distributed public key of the committee (hex encoded)")
    	flag.StringSlice(CfgDRNGCommitteeMembers, []string{}, "list of committee members of the drng")
    }