Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

return stack for merkle proof #20

Closed
wants to merge 1 commit into from
Closed

Conversation

zmitton
Copy link
Contributor

@zmitton zmitton commented Jul 5, 2017

This is a very easy way to enable the extraction of merkleproof data from this js module. Literally a one-line change. It does not break the existing API and only passes a reference (so no performance decreases either).

This data has everything needed to make the merkleproof (although it may be useful to reformat it into a standard like open-timestamp or chainpoint). I am creating a module to do the rest of the work and verify the proofs. Happy to merge it in this repo as well (if you want).

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.234% when pulling 1aa1d69 on zmitton:master into 828febf on ethereumjs:master.

@wanderer
Copy link
Member

Looks good to me. @kumavis any comments here?

@kumavis
Copy link
Member

kumavis commented Jul 11, 2017

I think this PR is ok but better to make findPath public
things like remainder are useful to return as well

@kumavis
Copy link
Member

kumavis commented Jul 11, 2017

also i realized today that the diff in this PR while it looks like a non-breaking change, it would break if this were being used in an async.waterfall (different number of results -> different args to following method)

@zmitton
Copy link
Contributor Author

zmitton commented Jul 13, 2017

closing because fixed by PR #22

@zmitton zmitton closed this Jul 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants