keep-starknet-strange / raito

Bitcoin ZK client written in Cairo.
https://raito.wtf
MIT License
40 stars 34 forks source link

Fix difficulty target precision reduction #191

Closed m-kus closed 1 month ago

m-kus commented 1 month ago

This PR fixes the issue with difficulty target precision reduction (related to the MSB).
Also we no longer need target_to_bits helper, for header bits validation it makes more sense to use bits_to_target because it is actually untrusted input while target is provided already validated.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
raito ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 6:46pm