-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB-Sync mistakenly requires a hash for CIP-119 'data:image' #1857
Comments
Indeed we should avoid errors in that case. But I find the CIP a big vague. What does
it mean? contain in what key and with any data uri encoding? |
|
With #1860 metadata like this are accepted, the |
Table
off_chain_vote_fetch_error
has the following errorError Offchain Voting Anchor: JSON decode error from when fetching metadata from Just https://ipfs.io/ipfs/QmVc6RwPSRtEPbLSZPbRQX65RyfB4y9ar2kwU5Ku97McVr resulted in : "Error in $.body.image: parsing Cardano.DbSync.OffChain.Vote.Types.Image(Image) failed, key \"sha256\" not found, CIP-100:Error in $: key \"authors\" not found"
Mainly that's fine, but there are some metadata like this one https://ipfs.io/ipfs/QmVc6RwPSRtEPbLSZPbRQX65RyfB4y9ar2kwU5Ku97McVr where
Due to CIP-119
sha256
property MUST be populated with the SHA256 hash only If the imageObject DOES NOT contain a base64 encoded image.There is no need to check hash of data:image, since the image is in the chain and cannot be changed
The text was updated successfully, but these errors were encountered: