Structs§
- Global secp context.
- This is an unspendable pubkey.
Statics§
- Global BitVM cache wrapped in a OnceLock.
- Replacing bitvm scripts require cloning the scripts, which can be ~4GB. And this operation is done every deposit. So we ensure only 1 thread is doing this at a time to avoid OOM.
Functions§
- Helper function to calculate the total number of replacement operations