I don't know much about the book of Nicodemus, but here is what one person had said concerning this book, and what Nicodemus supposedly said about the Two Witnesses in Revelation 11:
"Nicodemus wrote a book that the early church circulated. In it there is also the claim that the two witnesses are Enoch and Elijah.
Nicodemus 20:2-4
"Two very ancient men met them and were asked by the saints, 'Who are ye, who have not been with us in sheol, and have not had your bodies placed in paradise ?' One of them, answering said,
'I am Enoch, who was translated by the word of God,
and this man is Elijah, the Tishbite,
who was translated in a fiery chariot.
Here we have been hitherto and have not tasted death, but are now about to return at the coming of the Antichrist, being armed with divine signs and miracles to engage with him in battle, and to be slain by him at Jerusalem and to be taken up alive again in the clouds after 3 1/2 days.'"
"Two very ancient men met them and were asked by the saints, 'Who are ye, who have not been with us in sheol, and have not had your bodies placed in paradise ?' One of them, answering said,
'I am Enoch, who was translated by the word of God,
and this man is Elijah, the Tishbite,
who was translated in a fiery chariot.
Here we have been hitherto and have not tasted death, but are now about to return at the coming of the Antichrist, being armed with divine signs and miracles to engage with him in battle, and to be slain by him at Jerusalem and to be taken up alive again in the clouds after 3 1/2 days.'"
So, whether you accept the book of nicodemus is aside, it shows that the early church believed it this way... that the second witness was to be Enoch..."