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

This is just an example

1
  • Is that the output from an actual file? The hex is not valid CBOR.
    – nalyd88
    Nov 30, 2023 at 21:54

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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