Closed svz-ya closed 1 year ago
@svz-ya I think that you are right. Unfortunately there are no tests for the hex prefixes. We should be careful with not breaking what may for others (even if we now see it's not how it should work 🙈)
@alovak
We should be careful with not breaking what may for others (even if we now see it's not how it should work see_no_evil)
I agree. So what are your suggestions?
@svz-ya please, rebase, and we will merge it :)
@svz-ya I've rebased and merged it myself here: https://github.com/moov-io/iso8583/pull/198
thank you for your contribution!
it was released https://github.com/moov-io/iso8583/releases/tag/v0.12.2 @svz-ya
I believe that variable length HEX prefix is encoded/decoded incorrectly. For example, if we have a data block with length 24 bytes and encode
prefix.Hex.LLL
prefix it gives:i.e. ASCII-HEX representation of decimal number
24
without even a padding to 3 digits. However it is expected to haveASCII representation of
0x000018
. LLL means 3 bytes for hex number, which is 6 hex nibbles.