bitcoindevkit / bdk

A modern, lightweight, descriptor-based wallet library written in Rust!
Other
868 stars 311 forks source link

Check unchecked arithmetic for externally provided values #1702

Open notmandatory opened 1 week ago

notmandatory commented 1 week ago

"All across the crate, unchecked arithmetic is used. The unchecked arithmetic routines of rust-bitcoin's Amount type will panic if the result of an operation overflows. This is an issue for externally-provided values, such as for instance recipient amounts or fees"