ralexstokes / ssz-rs

Implementation of ethereum's `ssz`
Apache License 2.0
102 stars 40 forks source link

verify merkle logic #63

Closed ralexstokes closed 1 year ago

ralexstokes commented 1 year ago

a question came from a PR here: https://github.com/ralexstokes/ssz-rs/pull/57/files#r1218453460

answer the question

ralexstokes commented 1 year ago

the logic here seems fine, and checking that i == 0 is equivalent to checking if the parent is empty

I pushed the change in #57