Public-key encryption was supposedly invented at GCHQ by James Ellis, Clifford Cocks and Malcolm Williamson in 1975, one year before Diffie and Hellman published their paper. The work had to be kept secret though, so they never published it.
My guess is that if it was not published at the time of discovery, there's no way to know for sure whether Ellis actually invented it before Diffie and Hellman.
The irony is that such a scheme for publicly disclosing proof you have a piece of data without immediately publishing the data requires public key cryptography and digital signatures to be public knowledge. [0]
Ellis conceived of practical public-key crypto PRIOR to Diffie but it was classified at GCHQ. Diffie wanted to know how Ellis invented it after he had heard this was the case.