One day in the near future shoppers could use a smartphone to determine the history of their diamond.