dhiway / cord.js

Cord JS API
Apache License 2.0
36 stars 48 forks source link

Fix verifyPresentation - Implemented a comparison between the stream hash and the document hash #113

Closed adi-a11y closed 1 year ago

adi-a11y commented 1 year ago

The "verifyPresentation" method was initially designed to determine if a stream had been revoked. It would return false only in cases of revocation. However, when dealing with stream updates, the stream remains unrevoked, causing "verifyPresentation" to incorrectly return true for old documents as well. This problem has been resolved by implementing the new check.