celestiaorg / go-square

A library for encoding blobs into a 2D square of evenly sized chunks designed for sampling and reconstruction
Apache License 2.0
13 stars 16 forks source link

When parsing shares, check that all shares belong to the same namespace #78

Open cmwaters opened 2 months ago

cmwaters commented 2 months ago

Summary

Ref: https://github.com/celestiaorg/go-square/blob/54314fc69356555ac72e506819bca07d54e1b4f2/shares/parse_sparse_shares.go#L72

We currently don't check that subsequent shares still have the same namespace in a sequence

For Admin Use

Wondertan commented 2 months ago

Share should have Validate func that validates it is correct and has the given namespace