Skip to content
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

Non Interactive Proof of Replication #1999

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

NemanjaLu92
Copy link

No description provided.

pub proof: Vec<u8>,
pub sealed_cid: Cid, // Commr
pub unsealed_cid: Cid, // Commd
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do this without introducing a new NISealVerifyInfo type, and thus without a new syscall at all? The proof type carries the information that it is NI, and then determines that certain fields will be ignored.

  • deal_ids: already ignored and always empty
  • interactive_randomness: let's just specify it shall be zero (and ignored) for NI proofs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was my initial thinking too. Will change that.

@anorth
Copy link
Member

anorth commented May 10, 2024

This is probably ready for review. We'll need it to land so the actors change can depend on it.

@Stebalien the associated FIP is accepted. Can we land this direct to master?

@Stebalien Stebalien marked this pull request as ready for review May 10, 2024 04:49
@Stebalien
Copy link
Member

It looks like this doesn't build with the "proofs" feature enabled.

@rvagg
Copy link
Member

rvagg commented May 13, 2024

just needs the additional TryFrom matches added I believe

@NemanjaLu92
Copy link
Author

just needs the additional TryFrom matches added I believe

True, but I need to change dependancy to the filecoin-proofs-api which doesn't include NI PoRep Registered proof in latest version (17.0). How should we proceed? Create a new release in filecoin-proofs-api and update dependency in ref-fvm?

@rjan90
Copy link
Contributor

rjan90 commented May 16, 2024

True, but I need to change dependancy to the filecoin-proofs-api which doesn't include NI PoRep Registered proof in latest version (17.0). How should we proceed? Create a new release in filecoin-proofs-api and update dependency in ref-fvm?

A new Filecoin-proofs-api release is expected to be out today (Thursday May 16th), which includes the NI-PoRep registered proofs.

@Stebalien
Copy link
Member

It looks like storage-proofs-update is either missing a minimum version specification for something, or it isn't enabling some feature flag... @cryptonemo?

Ok(Self::StackedDrg2KiBV1_2_Feat_NonInteractivePoRep)
}
StackedDRG512MiBV1P1_Feat_NiPoRep => {
Ok(Self::StackedDrg512MiBV1_2_Feat_NonInteractivecPoRep)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this misnaming has been fixed in the newly released filecoin-proofs-api v18.0.1 if you update the dependency here

Suggested change
Ok(Self::StackedDrg512MiBV1_2_Feat_NonInteractivecPoRep)
Ok(Self::StackedDrg512MiBV1_2_Feat_NonInteractivePoRep)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

5 participants