This PR replaces RejectReason(Vec<u8>) with rust-equivalent error types from the Haskell cardano-ledger codebase. In addition I've implemented a CBOR decoder for error responses, including errors that don't fit in a single segment. It can also pass over CBOR bytes of unhandled node errors.
This PR replaces
RejectReason(Vec<u8>)
with rust-equivalent error types from the Haskellcardano-ledger
codebase. In addition I've implemented a CBOR decoder for error responses, including errors that don't fit in a single segment. It can also pass over CBOR bytes of unhandled node errors.Some errors that can be currently decoded: