I'm not able to find any specific documentation that discusses about the user consent here? Would it be a violation of privacy from a GDPR standpoint?
Would you be able to delete the hash if the fingerprint owner asked you to?
If the number of possible inputs is small enough, you can just rehash them all, and then your "one-way" hash becomes two-way.