i want to make my own implementation to understand every thing better
this?
Yes.
can you point what should i improve in my code though?
Unfortunately, I donât have time to review your code. Feel free to check the example projects, the documentation and the implementation of the libraries for inspiration.
could you brief this process?
Specifying Dependencies - The Cargo Book.
i want to make my own implementation to understand every thing better
I wouldnât recommend it, especially if youâre in a hurry, itâs quite a complex subject. But if you really want to, then I would suggest:
- Reading the spec.
- Checking the ic-http-certification library.
- Checking the ic-asset-certification library.
- Checking the ic-asset-certification example canister.
Iâm happy to help with any specific questions that you might have after doing this.
i would like to ask a simple question
also i would discuss this , after today , will do my research based on the resources mentioned in here .
Thanks !!
Iâm not sure whatâs happening here, if @Severin doesnât know then maybe it would be better to create a new topic for that so others can see it.
@Severin
i have implmeneted my logic based on this sdk/src/canisters/frontend/ic-certified-assets at master ¡ dfinity/sdk ¡ GitHub
now i get tinvalid response hashes even though image is uploaded successfully:
https://esygv-biaaa-aaaak-ak2va-cai.icp0.io
https://zcs7y-5iaaa-aaaam-adxfq-cai.icp0.io/file-image-1.jpg
Response verification failed: The wildcard expression path provided by the "IC-Certificate" response header (["http_expr", "<*>"]) is valid for the request path ("/file-image-1.jpg"), but was not found in the tree
To me this reads like you do the right thing in http_request
, but you donât set the /http_expr/<*>
value in the cert tree when uploading the files
i am able to upload max 2 mb size of files at the moment , how can we store greater than 2 mb file size ?
You have to upload files in chunks. In the canister you can then stitch the pieces back together