In my last question, I asked about how to generate key pair in substrate.But it seems that it is hard to do this.So I have to make a conclusion that I can't generate key pair in substrate sadly. But my intuition told me that I was wrong. So if somebody knows the truth about my question,please tell me.
In the course of struggling against the problem,I still puzzled why I can't use sp_core::Pair in my pallet code. Or who can tell me under what conditions I can import this item to my code.Is there some features or attributs that can help me to import sp_core::Pair into my code. I am not very clear with the condition compilation course of runtime especially the influence of cfg feature. Hope to learn this,anything about this is good for me.
Thanks!!!