Let's say that I want to send the hash of a key to an entity and I want the entity to be sure that the hash could have come only from me.
It is possible to create a message with the hash of the key and then send it signed to the other entity?
Will this cost any gas?
Will a transaction be generated and mined in a block in the blockchain?