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

What if some submitters submit some fake headers? #8

Open
spartucus opened this issue Sep 10, 2024 · 0 comments
Open

What if some submitters submit some fake headers? #8

spartucus opened this issue Sep 10, 2024 · 0 comments

Comments

@spartucus
Copy link

// Anyone can submit block headers to BtcMirror. The contract verifies
// proof-of-work, keeping only the longest chain it has seen. As long as 50% of
// Bitcoin hash power is honest and at least one person is running the submitter
// script, the BtcMirror contract always reports the current canonical Bitcoin
// chain.

From the BtcMirroe.sol code, submit function does not check the authority of sender, what if some attackers submit fake headers? How can we make sure that the header stored in the contract is the real bitcoin header?

@spartucus spartucus changed the title What if a submitter submit some fake headers? What if some submitters submit some fake headers? Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant