github.com/koko1123/flow-go-1@v0.29.6/module/dkg/instance.go (about) 1 package dkg 2 3 import ( 4 "fmt" 5 6 "github.com/koko1123/flow-go-1/model/flow" 7 ) 8 9 // CanonicalInstanceID returns the canonical DKG instance ID for the given 10 // epoch on the given chain. 11 func CanonicalInstanceID(chainID flow.ChainID, epochCounter uint64) string { 12 return fmt.Sprintf("dkg-%s-%d", chainID.String(), epochCounter) 13 }