In the Plutus Pionner Lectures, Lars instructed us to use txSignedBy
in order to ensure that a user signed the transaction. The function tries to find a public key hash in the txInfoSignatories
list, if it's able to find, it returns True.
Everything was working in the emulator, but now, when I tried to manually build and sign the transaction with cardano-cli, the transaction doesn't appear to add the public key hash from the user who signed it to txInfoSignatories
and the script validation fails. My question is: how do I add the user pubkeyhash to txInfoSignatories
with cardano-cli? No information regarding the signature appears when I execute cardano-cli transaction build -- help