I am not asking how I will know who Moshiach is. My question is how will he know to do those things which will let me know who he is. And specifically, will he know long before his revelation that he is Moshiach (i.e. is it possible some guy is walking around for 20 years knowing that he is Moshiach but can't tell anyone yet) or will he suddenly get a nevuah to go do all those things Moshiach does so well?
As always, please source your answers.
(No, I'm not wondering if I may be Moshiach and just don't know it - I am definitively not of the Davidic line. But maybe you?)