diff --git a/plugins/drng/drng.go b/plugins/drng/drng.go index a3a014b288d7038fa07c13b81409164658beb758..6c879d607665be27bb2ab927e5f995998e5ffefe 100644 --- a/plugins/drng/drng.go +++ b/plugins/drng/drng.go @@ -49,6 +49,7 @@ func configureDRNG() *drng.DRNG { return drng.New(state.SetCommittee(committeeConf)) } +// Instance returns the DRNG instance. func Instance() *drng.DRNG { once.Do(func() { instance = configureDRNG() }) return instance diff --git a/plugins/drng/parameters.go b/plugins/drng/parameters.go index d0c1193de979f71ce5766c028e15c38d824a05cd..07a4e8ac4f630563c556c7d654153a8a453b93fb 100644 --- a/plugins/drng/parameters.go +++ b/plugins/drng/parameters.go @@ -5,10 +5,14 @@ import ( ) const ( - CfgDRNGInstanceID = "drng.instanceId" - CfgDRNGThreshold = "drng.threshold" + // 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 = "drng.committeeMembers" + // CfgDRNGCommitteeMembers defines the config flag of the DRNG committee members identities. + CfgDRNGCommitteeMembers = "drng.committeeMembers" ) func init() {