Closed Wondertan closed 1 year ago
The goal here is to improve type safety. Before, go-header users had to do type checks as https://github.com/celestiaorg/celestia-node/blob/main/header/verify.go#L12-L17. This PR parametrized the Header interface so that type safety is ensured during compilation rather than runtime
The goal here is to improve type safety. Before, go-header users had to do type checks as https://github.com/celestiaorg/celestia-node/blob/main/header/verify.go#L12-L17. This PR parametrized the Header interface so that type safety is ensured during compilation rather than runtime