Many people say Madara actually won Hashi since his only goal was to get Senju dna. I guess the most of u already know what im going to say. But im still wirting this because there are still NB members who use to say "Madara won this fight".
Here we can see Madara stating himself he took Hashis cells to heal himself.
So he never knew how to unlock the Rinnegan and it was never his goal to do so. He actually got the Rinnegan excidently. Otherwise it would make much more sense to get the Rinnegan BEFORE the fight with Hashi. (He could easily kill a Senju member and get his dna before fighting Hashi)
Here we can see Madara stating himself he took Hashis cells to heal himself.
You must be registered for see images