Closed m-kus closed 1 month ago
@Groxan wanna follow up?
Please @m-kus can I work on this?
Hey @ShantelPeters! Thanks for showing interest. We've created an application for you to contribute to Raito - Bitcoin ZK Client. Go check it out on OnlyDust!
@m-kus would be glad :)
Currently Utreexo state is part of the
UtxoSet
although it would be better to separate those two to have a cleaner design and solve some issues with batch inclusion proofs, cache integrity, and double spend prevention.Here are the suggested changes:
UtxoSet
no longer includes Utreexo stateleaves_to_delete
(similar toleaves_to_add
) andcache_keys
(to ensure all cached outputs are spent in the end)Header
struct and change all scripts/tests accordingly (note that we also need to add a constraint to ensure the computed block hash equals the one we provide)Utreexo accumulator updates / inclusion proof verification is "disabled" for now.