package protocol

// ID is an identifier used to write protocol headers in streams.
type ID string

// These are reserved protocol.IDs.
const (
	TestingID ID = "/p2p/_testing"
)

// ConvertFromStrings is a convenience function that takes a slice of strings and
// converts it to a slice of protocol.ID.
func ( []string) ( []ID) {
	 = make([]ID, 0, len())
	for ,  := range  {
		 = append(, ID())
	}
	return 
}

// ConvertToStrings is a convenience function that takes a slice of protocol.ID and
// converts it to a slice of strings.
func ( []ID) ( []string) {
	 = make([]string, 0, len())
	for ,  := range  {
		 = append(, string())
	}
	return 
}