Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Validating sha3 of a dapp bundle #1993

Merged
merged 3 commits into from
Aug 24, 2016
Merged

Validating sha3 of a dapp bundle #1993

merged 3 commits into from
Aug 24, 2016

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Aug 24, 2016

New address for testing (morden): http://04084ce8a748854f55a3a16ec7a2831f520990180b07706af646336e17935aeb.parity/
previous hash was calculated from incorrect bundle (master vs specific commit)

@tomusdrw tomusdrw added the A0-pleasereview 🤓 Pull request needs code review. label Aug 24, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 37bffd3 on dapps-valid into * on master*.

@@ -155,6 +158,45 @@ impl From<zip::result::ZipError> for ValidationError {
}
}


fn sha3(file: &mut fs::File) -> Result<H256, io::Error> {
Copy link
Contributor

Choose a reason for hiding this comment

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

worth pulling this out into util/sha3.rs - it could be used for my latest PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, but better would be a generic implementation for any R: Read so that you can sha3 a buffered reader as well as reading from a raw fd (which is a lot less efficient in general)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will do.

@debris debris added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 24, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 23b7ac4 on dapps-valid into * on master*.

@gavofyork gavofyork merged commit 33e0a23 into master Aug 24, 2016
@gavofyork gavofyork deleted the dapps-valid branch August 24, 2016 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants