user871: I have this script address of the type Plutus.V1.Ledger.Address.Address.
Address {addressCredential = ScriptCredential 31559888de4dd413f20557ff39f616eb3e8a52d36528f88e6aef2f8d,
 addressStakingCredential = Nothing}

Is there a way to convert this to a ShelleyAddress of the format addr.. using Plutus?

user871: Found the answer a while after posting this question. So, I am adding it here for reference. Using toCardanoAddress function from module Ledger.Tx.CardanoAPI conversion to ShelleyAddress can be done.
Example:
toCardanoAddress (Testnet $ NetworkMagic 1097911063) scriptAddress

You can unwrap the Either returned above if needed.

871: <p>I have this script address of the type <code>Plutus.V1.Ledger.Address.Address</code>.</p>
<pre><code>Address {addressCredential = ScriptCredential 31559888de4dd413f20557ff39f616eb3e8a52d36528f88e6aef2f8d,
 addressStakingCredential = Nothing}
</code></pre>
<p>Is there a way to convert this to a <code>ShelleyAddress</code> of the format <code>addr..</code> using <code>Plutus</code>?</p>
 871: <p>Found the answer a while after posting this question. So, I am adding it here for reference. Using <code>toCardanoAddress</code> function from <code>module Ledger.Tx.CardanoAPI</code> conversion to <code>ShelleyAddress</code> can be done.</p>
<p>Example:</p>
<pre><code>toCardanoAddress (Testnet $ NetworkMagic 1097911063) scriptAddress
</code></pre>
<p>You can unwrap the <code>Either</code> returned above if needed.</p>
