The bitcoinconsensus crate is used to do the proof verification here https://github.com/weareseba/bdk-reserves/blob/61b5f517f4c227bdf62507d1fcc2fd79bb87db8d/src/reserves.rs#L273-L279
BDK exposes a very similar functionality in the wallet api itself with the verify feature flag and uses the same bitcoinconsensus underneath like this..
https://github.com/bitcoindevkit/bdk/blob/2283444f727b85663b19d100af86db4392ebc891/src/wallet/verify.rs#L58-L68
This api is publicly exposed via verify feature of BDK.. So may be one more opportunity to reduce external dependency on bitcoinconsensus??
But might need some restructuring of the proof verification logic in this crate..
The
bitcoinconsensuscrate is used to do the proof verification here https://github.com/weareseba/bdk-reserves/blob/61b5f517f4c227bdf62507d1fcc2fd79bb87db8d/src/reserves.rs#L273-L279BDK exposes a very similar functionality in the wallet api itself with the
verifyfeature flag and uses the samebitcoinconsensusunderneath like this..https://github.com/bitcoindevkit/bdk/blob/2283444f727b85663b19d100af86db4392ebc891/src/wallet/verify.rs#L58-L68
This api is publicly exposed via
verifyfeature of BDK.. So may be one more opportunity to reduce external dependency onbitcoinconsensus??But might need some restructuring of the proof verification logic in this crate..