Closed
Description
While upgrading mininscript
to track master branch I found that the PushBytes::read_scriptint
function is unwieldy.
Should we add this back in:
/// Decodes an integer in script(minimal CScriptNum) format.
///
/// See [`PushBytes::read_scriptint`] for documentation.
pub fn read_scriptint(v: &[u8]) -> Result<i64, Error> {
let push = <&PushBytes>::try_from(v).map_err(|_| Error::NumericOverflow)?;
push.read_scriptint()
}
Metadata
Metadata
Assignees
Labels
No labels