ralexstokes / ethereum-consensus

Apache License 2.0
137 stars 53 forks source link

Verify `verify_blob_sidecar_inclusion_proof` with test data #363

Closed ralexstokes closed 6 months ago

ralexstokes commented 6 months ago

add a unit test with live data from e.g. sepolia and verify this function

ralexstokes commented 6 months ago

here's a sample blob sidecar from sepolia, https://sepolia.beaconcha.in/slot/4659411

https://gist.github.com/ralexstokes/8001b37c1e07cabd3dad3ff2fe47d6c2

EchoAlice commented 6 months ago

i've got u

ralexstokes commented 6 months ago

@EchoAlice this is the type of test I have in mind

https://github.com/ralexstokes/ethereum-consensus/blob/0e8809c1eda3f54a78991d7a5987ff42c9195d42/ethereum-consensus/src/serde.rs#L64

just loading some hardcoded json and then running some functions on it

ralexstokes commented 6 months ago

~if we can update the ssz-rs dep, we should also test that the merkle proving code there works to generate valid KZG inclusion proofs~ done