code: func IDFromBytes(b []byte) (ID, error) {
  	if _, err := mh.Cast(b); err != nil {
  		return ID(""), err
  	}
  	return ID(b), nil
  }
docs: // IDFromBytes cast a string to ID type, and validate
  // the id to make sure it is a multihash.