opentdf / web-sdk

OpenTDF JavaScript SDK
BSD 3-Clause Clear License
0 stars 1 forks source link

Optimize reconstructedKey #382

Open pflynn-virtru opened 2 weeks ago

pflynn-virtru commented 2 weeks ago

lib/tdf3/src/tdf.ts 'rewrap bad request; could indicate an invalid policy binding or a configuration error', e

  const reconstructedKey = keyMerge([result.key]);

Member @dmihalcik-virtru dmihalcik-virtru 1 hour ago Merging one key just returns the first value

Suggested change const reconstructedKey = keyMerge([result.key]); const reconstructedKey = result.key;