What I found out while implementing PEX is that there are functions that directly modify objects received as input. I think this will confuse users, so I think I'll have to copy the object internally and use it.
I proposed:
use after deep clone inside
selectDisclosures in @sd-jwt/present
comments or write a docs that this function change the input.
unpack, unpackSync, unpackObj and unpackArray in @sd-jwt/decode
What I found out while implementing PEX is that there are functions that directly modify objects received as input. I think this will confuse users, so I think I'll have to copy the object internally and use it.
I proposed:
selectDisclosures in @sd-jwt/present
unpack, unpackSync, unpackObj and unpackArray in @sd-jwt/decode