The current tests for bad encoding fraud proofs are rather sparse.
I believe due to ErrByzantineData returning shares that are bad, as well as good, it shouldn't be possible to generate a bad encoding fraud proof in some cases because it's not possible to get a Merkle proof for the bad reconstructed shares which don't match the Merkle root.
The current tests for bad encoding fraud proofs are rather sparse.
I believe due to ErrByzantineData returning shares that are bad, as well as good, it shouldn't be possible to generate a bad encoding fraud proof in some cases because it's not possible to get a Merkle proof for the bad reconstructed shares which don't match the Merkle root.
Related: https://github.com/celestiaorg/rsmt2d/issues/112