You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A malformed document can result in jsonld.canonize producing an empty string. niUri.digest has no problem hashing an empty string.
What would be desirable behavior for the hasher API when this occurs? Seems to me that there is no valid use case for hashing an empty string, so that should return an error.
https://github.com/digitalbazaar/bedrock-ledger-node/blob/master/lib/index.js#L580
A malformed document can result in jsonld.canonize producing an empty string.
niUri.digest
has no problem hashing an empty string.What would be desirable behavior for the hasher API when this occurs? Seems to me that there is no valid use case for hashing an empty string, so that should return an error.
This document is invalid because
id
is not a URLThe text was updated successfully, but these errors were encountered: