this post was submitted on 24 Nov 2023
1 points (100.0% liked)

IPFS

3 readers
1 users here now

The InterPlanetary File System (IPFS) is a set of composable, peer-to-peer protocols for addressing, routing, and transferring content-addressed data in a decentralized file system. Many popular Web3 projects are built on IPFS - see the ecosystem directory for a list of some of these projects.

founded 1 year ago
MODERATORS
 

I have uploaded 2 Files with the IPFS Desktop APP. When i click on Share Link and put the Link in the browser i find nothing and get a Timeout after a few minutes. When I click on Inspect and then on
View on Public Gateway also nothing happens. When i click on "View on Local Gateway" the file is beeing downloaded. What did i do wrong? Why cant nobody access my file through IPFS?

Thanks in advance!

(The Link to the second file: https://ipfs.io/ipfs/QmXyeWVSj4G87eNwSpKzS2h7FbbRiAuaJwk5qXR8LNbAwd?filename=verify_range.zok ).

https://preview.redd.it/ux1gepptib2c1.png?width=2593&format=png&auto=webp&s=48f9f904b26a3f79c915186afb7d23c23a88a18f

https://preview.redd.it/xoqzk3t5jb2c1.png?width=1765&format=png&auto=webp&s=39750ee4383afdba60a412d5e88e19826509b086

you are viewing a single comment's thread
view the rest of the comments
[–] DigitalDude_42@alien.top 1 points 1 year ago (3 children)

The file you posted worked for me. So it must have gotten there as you were trying to fetch it.

I got,

import "hashes/sha256/512bitPadded.code" as sha256;
from "ecc/babyjubjubParams" import BabyJubJubParams;
import "signatures/verifyEddsa.code" as verifyEddsa;
import "ecc/babyjubjubParams.code" as context;

def main(u32 min, u32 max, u32 [8] attr, private u32 [8] vc, private field[2] R, private field S, field[2] A, u32[8] M0, u32[8] M1) -> bool{
    //Verify Signature (R,S) with PupKey (A) on Hash (M0, M1)
	BabyJubJubParams context = context();
    bool isVerified = verifyEddsa(R, S, A, M0, M1, context);
    u32[8] hash1 = sha256(attr, vc);
    // M0 is the first 32 bytes of sha256(input 1 || vc) || sha256(attr || vc)
    bool hashcheck = hash1 == M0;

    bool rangeCheck = vc[7] >= min && vc[7] <= max;

    bool r = isVerified && hashcheck && rangeCheck;

    return r;
[–] reddragon_alex@alien.top 1 points 1 year ago (2 children)

Thank you! Now it also works for me, but when i try to look for the other File (its 58MiB
big while the code above is just 781B) i get, again, a timeout error. Is there a size limit?

(Second Link: https://ipfs.io/ipfs/QmajAs8D7HU56Rh3qckQ4FZkFnZFLTi3hsjzhuUESgaakL?filename=proving.key)

[–] volkris@alien.top 1 points 1 year ago

Larger files get split up into numerous small blocks, so it can cause issues when the requester has to track down and request all of those separate blocks.

load more comments (1 replies)
load more comments (1 replies)