// SchemaIDToParts takes a schemaID, for example 6qnvgJtqwK44D8LFYnV5Yf:2:registration.dflow:1.0.0
// and returns the schema's issuer DID, the `ver`, the schema name and the schema version.
SchemaIDToParts takes a schemaID, for example 6qnvgJtqwK44D8LFYnV5Yf:2:registration.dflow:1.0.0
and returns the schema's issuer DID, the `ver`, the schema name and the schema version.
// SchemaIDToParts takes a schemaID for example 6qnvgJtqwK44D8LFYnV5Yf : 2 : registration . dflow : 1 . 0 . 0 // and returns the schema ' s issuer DID the ` ver ` the schema name and the schema version .
func SchemaIDToParts(schemaID string) (string, string, string, string, error) {
	parts := strings.Split(schemaID, ":")
	if len(parts) != 4 {
		return "", "", "", "", ErrInvalidSchemaID
	}
	return parts[0], parts[1], parts[2], parts[3], nil
}
func SchemaIDToParts ( schemaID string ) ( string , string , string , string , error ) { parts := strings . Split ( schemaID , " " ) if len ( parts ) != 4 { return " " , " " , " " , " " , ErrInvalidSchemaID } return parts [ 0 ] , parts [ 1 ] , parts [ 2 ] , parts [ 3 ] , nil }
SchemaIDToParts takes a schemaID, for example 6qnvgJtqwK44D8LFYnV5Yf:2:registration.dflow:1.0.0
and returns the schema's issuer DID, the `ver`, the schema name and the schema version.
SchemaIDToParts takes a schemaID for example 6qnvgJtqwK44D8LFYnV5Yf : 2 : registration . dflow : 1 . 0 . 0 and returns the schema ' s issuer DID the ` ver ` the schema name and the schema version .