user4129: Im reading through old Plutus code and it seems to be that you could use in the past
pubKeyHash with the mustPayToPubKey function now it asks for a PaymentPubKeyHash. How do you get around this if you want to send a value to an owners paymentPubKeyHash from a plutus script considering that there is no byte string implementation of a PaymentPubKeyHash?
I cant use PubKeyHash anymore in the mustPayToPubKey is there a way to convert this format?

user6408: This is a simple newtype https://playground.plutus.iohkdev.io/doc/haddock/plutus-ledger/html/Ledger-Address.html#t:PaymentPubKey
you can import Ledger.Address and convert it with something like PaymentPubKeyHash myPubKeyHash, you can convert in the opposite direction with unPaymentPubKeyHash

4129: <p>Im reading through old Plutus code and it seems to be that you could use in the past
pubKeyHash with the mustPayToPubKey function now it asks for a PaymentPubKeyHash. How do you get around this if you want to send a value to an owners paymentPubKeyHash from a plutus script considering that there is no byte string implementation of a PaymentPubKeyHash?</p>
<p>I cant use PubKeyHash anymore in the mustPayToPubKey is there a way to convert this format?</p>
 6408: <p>This is a simple newtype <a href="https://playground.plutus.iohkdev.io/doc/haddock/plutus-ledger/html/Ledger-Address.html#t:PaymentPubKey" rel="nofollow noreferrer">https://playground.plutus.iohkdev.io/doc/haddock/plutus-ledger/html/Ledger-Address.html#t:PaymentPubKey</a></p>
<p>you can import <code>Ledger.Address</code> and convert it with something like <code>PaymentPubKeyHash myPubKeyHash</code>, you can convert in the opposite direction with <code>unPaymentPubKeyHash</code></p>
