A new type of drug could one day treat pain, memory loss and nicotine addiction