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

fix: verify consistent use of porep_id when sealing #1167

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

porcuquine
Copy link
Collaborator

@porcuquine porcuquine commented Jun 16, 2020

Use of porep_id in generating replica_id, when deriving drg seed, and when deriving feistel keys are independent. This PR adds a check to ensure they are consistent. Current filecoin_proofs API function will always pass the correct porep_id obtained from the PoRepConfig and therefore be 'consistent'. The checks inserted here ensure this is true.

UPDATE: In fact, porep_id still being a public input was a vestige of its evolution and no longer required. So consistency is produced even more simply by removing it altogether.

@porcuquine porcuquine force-pushed the feat/enforce-consistent-porep-id branch from d1f6c86 to 02e1a84 Compare June 16, 2020 02:25
@porcuquine porcuquine added the cryptocomputelab CryptoComputeLab work label Jun 16, 2020
dignifiedquire
dignifiedquire previously approved these changes Jun 16, 2020
dignifiedquire
dignifiedquire previously approved these changes Jun 16, 2020
cryptonemo
cryptonemo previously approved these changes Jun 16, 2020
@porcuquine porcuquine force-pushed the feat/enforce-consistent-porep-id branch from f7066c7 to 83a0515 Compare June 16, 2020 19:32
@dignifiedquire dignifiedquire changed the title Verify consistent use of porep_id when sealing. fix: verify consistent use of porep_id when sealing Jun 16, 2020
@dignifiedquire dignifiedquire merged commit 332d0a9 into master Jun 16, 2020
@dignifiedquire dignifiedquire deleted the feat/enforce-consistent-porep-id branch June 16, 2020 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cryptocomputelab CryptoComputeLab work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants