<p>I use python cbor2 library or <a href="https://cbor.me" rel="nofollow noreferrer">https://cbor.me</a>. In the case of a wallet vkey, it's just a hex value that it'll decode as. Something like a transaction will have more data types embedded in the CBOR.</p>

CC BY-SA 4.0
2022-03-09T03:59:55.173Z
2022-03-09T03:59:55.173Z
Samuel Leathers
<p>hope you all are doing great.
I am looking for a way to encode and decode the cborHex. I've done the following:</p>
<pre><code>cardano-cli text-view decode-cbor --in-file wallet.vkey --out-file tx.alonzo
</code></pre>
<p>and I get the hex binary format but not a utf8 (human readable) format, how can this be done?</p>
<p>for reference, I've followed this question <a href="https://cardano.stackexchange.com/questions/4489/how-to-decode-cbor-which-is-generated-with-cardano-cli-build-command">How to decode cbor which is generated with cardano-cli build command?</a></p>

<cardano-cli><cbor>
cbor encode and decode
# cbor encode and decode

(Asked by: username_0 on 2022-03-07)

hope you all are doing great.
I am looking for a way to encode and decode the cborHex. I've done the following:
cardano-cli text-view decode-cbor --in-file wallet.vkey --out-file tx.alonzo

and I get the hex binary format but not a utf8 (human readable) format, how can this be done?
for reference, I've followed this question How to decode cbor which is generated with cardano-cli build command?

**Tags:** cardano-cli, cbor

---

## 1 answers

### Answer by username_1 on 2022-03-09. Score: 1

I use python cbor2 library or <https://cbor.me>. In the case of a wallet vkey, it's just a hex value that it'll decode as. Something like a transaction will have more data types embedded in the CBOR.


---

