github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/dkg/instance.go (about) 1 package dkg 2 3 import ( 4 "fmt" 5 6 "github.com/onflow/flow-go/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 }