Function scriptToCbor

Serializes a Script object into its CBOR hexadecimal string representation.

  • Parameters

    • data: Script

      The Script object to serialize.

    Returns string

    A hex-encoded CBOR string.