RalphTro / epcis-event-hash-generator

ALGORITHM and SOFTWARE PROTOTYPE to uniquely identify/validate the integrity of any EPCIS event through a common, syntax-agnostic approach based on hashing. Takes an EPCIS Document (formatted in either XML or JSON-LD) and returns the corresponding hash value(s).
MIT License
8 stars 4 forks source link

reordering of unordered lists #10

Closed Echsecutor closed 4 years ago

Echsecutor commented 4 years ago

If e.g. the EPCs in the epcList are reordered, the event is unchanged but the hash changes.

Echsecutor commented 4 years ago

Test that reveals the problem added in bbcfb2c28453b725a46198eb27df9dc73796c7e3

Echsecutor commented 4 years ago

Fixed in 01a3bf1e77c3cd1b6eeb5492667be00782571678 (order values in list before concatenating to pre-hash string)