<p>First off, when analyzing CBOR data, cbor.me is your friend. Paste in the CBOR hex string and let it show you the structure.</p>
<p>In the witness files that I've worked with, the structure is as follows:</p>
<pre><code>82                           # array(2)
  00                         # unsigned(0)
  82                         # array(2)
    58 20                    # bytes(32)
      71...60                # &lt;- This is the vkey bytes
    58 40                    # bytes(64)
      6C...0F                # &lt;- This is the signature bytes
</code></pre>

CC BY-SA 4.0
2023-11-30T22:01:20.947Z
2023-11-30T22:01:20.947Z
nalyd88
<pre><code>{
    &quot;type&quot;: &quot;Witnessed Tx BabbageEra&quot;,
    &quot;description&quot;: &quot;Ledger Cddl Format&quot;,
    &quot;cborHex&quot;: &quot;84a3008182582088921ae2626e&quot;
}
</code></pre>
<p>This is just an example</p>

CC BY-SA 4.0
2023-11-30T21:54:55.220Z
Is that the output from an actual file? The hex is not valid CBOR.
nalyd88
<cardano-cli><cbor>
How to obtain signature from the cborhex? If i have simple-tx.signed
# How to obtain signature from the cborhex? If i have simple-tx.signed

(Asked by: username_0 on 2023-11-29)

{
    "type": "Witnessed Tx BabbageEra",
    "description": "Ledger Cddl Format",
    "cborHex": "84a3008182582088921ae2626e"
}

This is just an example

**Tags:** cardano-cli, cbor
> **Comments:**
> **username_1**: Is that the output from an actual file? The hex is not valid CBOR.  

---

## 1 answers

### Answer by username_1 on 2023-11-30. Score: 0

First off, when analyzing CBOR data, cbor.me is your friend. Paste in the CBOR hex string and let it show you the structure.
In the witness files that I've worked with, the structure is as follows:
82                           # array(2)
  00                         # unsigned(0)
  82                         # array(2)
    58 20                    # bytes(32)
      71...60                # <- This is the vkey bytes
    58 40                    # bytes(64)
      6C...0F                # <- This is the signature bytes


---

