1

After spending some time learning Plutus with emulators, I decided to start learning how to actually deploy and use the scripts in the testnet. In this process, I installed cardano-cli and created multiple key files, such as "payment.addr", "payment.skey", "payment.vkey", etc. But now, the validator script that I created requires as one of it's parameters a Plutus AssocMap associating public key hashes to integers.

My question is, based on the keys I created, how can I find out their PubKeyHash? I believe this is related to "payment.addr", but I'm not sure.

3

I think you're looking for this:

  • cardano-cli address key-hash --payment-verification-key STRING
  • cardano-cli address key-hash --payment-verification-key-file FILE

You should use your payment.vkey

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.