Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: type paramed Header interface #96

Merged
merged 5 commits into from
Aug 25, 2023
Merged

Conversation

Wondertan
Copy link
Member

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

header.go Outdated Show resolved Hide resolved
@Wondertan Wondertan changed the title refactor: harden verification refactor!: type paramed Header interface Aug 21, 2023
@Wondertan Wondertan marked this pull request as draft August 21, 2023 15:00
@Wondertan Wondertan marked this pull request as ready for review August 24, 2023 16:17
@Wondertan Wondertan merged commit 3b7c845 into main Aug 25, 2023
2 checks passed
@Wondertan Wondertan deleted the type-paramed-header branch August 25, 2023 09:39
Wondertan added a commit that referenced this pull request Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants