sd-jwt-js
sd-jwt-js copied to clipboard
Should we require the status list entries to be a multiple of the statuses per byte?
e.g. if you have a status list with 4 status, and bit size 1, you encode this and then decode it, the decoded status list will have 8 entries, as you encode the status list per byte.
So I think we should maybe do a check that the <totalStatus> % (8 / <bitsPerStatus>)
equals 0
E.g. a status list of length 256, with 1 bit per status = 256 % (8 / 1)
= 0
However a status list of length 4 with 1 bit per status = 4 % (8 / 1)
= 4
This will ensure the initial status list will always equal the decoded status list