Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

BCMR hash mismatch #58

Open
mr-zwets opened this issue Sep 21, 2023 · 1 comment
Open

BCMR hash mismatch #58

mr-zwets opened this issue Sep 21, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@mr-zwets
Copy link
Member

occurrence: file hash is ca6e2ec3d116be0f26fca99b81bf5cc0b15ce1240972234683a6fd4d66042f53 yet bcmr has 7bdfb6e6fa52cfcb1c338565046f1fc5fe45808b1d1040395e43e82ed921b956

https://tokenexplorer.cash/?tokenId=c87a17d7fa0c8d3a4d8a9ae916e6457abf477ccfc4f2d354d42f562638a1ba5b

-> maybe hashing a 404 page or so from the IPFS gateway, cashonize should check if JSON data is returned

@mrtnetwork
Copy link

mrtnetwork commented Jan 19, 2024

I encountered an issue today. It's important to check the response before hashing. and "BCMR" in utf8 with length encoding should be "0442434d52"

const bcmrContent = await response.text(); /// Additional conditions should be added in this block
const hashContent = sha256.hash(utf8ToBin(bcmrContent));
const chunks = ["BCMR", hashContent, inputField];

@mr-zwets mr-zwets added the wontfix This will not be worked on label Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants
@mr-zwets @mrtnetwork and others