We would like to do away with the `GeneralHash` trait. Currently we bound `Hmac` and `HmacEngine` on it but this is unnecessary now that we have added `HashEngine::finalize` and `HashEngine::Hash`. Bound the `HmacEngine` on `HashEngine` (which has an associated `Hash` type returned by `finilalize`). Bound `Hmac` type on `T::Hash` where `T` is `HashEngine`. Includes some minor shortening of local variable names around hmac engine usage. Note this means that `Hmac` no longer implements `GeneralHash`. |
||
---|---|---|
.. | ||
contrib | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
README.md |
README.md
Rust-Bitcoin I/O Library
The std::io
module is not exposed in no-std
Rust so building no-std
applications which require
reading and writing objects via standard traits is not generally possible. Thus, this library exists
to export a minimal version of std::io
's traits which we use in rust-bitcoin
so that we can
support no-std
applications.
These traits are not one-for-one drop-ins, but are as close as possible while still implementing
std::io
's traits without unnecessary complexity.