#bitcoin #num #big-int #crypto #no-std

no-std bitcoin_num

Numeric functions & traits used by rust bitcoin, bitcoin_hashes and other packages, supporting rustc 1.29.0

7 releases

Uses old Rust 2015

0.2.3 Oct 11, 2020
0.2.2 Oct 11, 2020
0.1.0 Sep 11, 2020

#5 in #bigint

26 downloads per month

CC0 license

61KB
1.5K SLoC

Status

Bitcoin Numeric Library

This is a simple, no-dependency library which implements utility functions for working with big integers, hex encodings etc needed by Bitcoin. It differs from other existing cragtes in the field in it's focus on supporting the same versions of Rust compilers as bitcoin and bitcoin_hashes crates and not using any external dependencies in order to reduce potential attack surface.

Documentation

Minimum Supported Rust Version (MSRV)

This library should always compile with any combination of features on Rust 1.29.

Contributions

Contributions are welcome, including additional hash function implementations.


lib.rs:

Rust Bibtcoin Numeric Library

This is a simple, no-dependency library which implements utility functions for working with big integers, hex encodings etc needed by Bitcoin. It differs from other existing cragtes in the field in it's focus on supporting the same versions of Rust compilers as bitcoin and bitcoin_hashes crates and not using any external dependencies in order to reduce potential attack surface.

Dependencies

~175KB