Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Nov 9, 2021
1 parent 3b88ff1 commit b87a587
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Changelog

## [0.8.0] — unreleased

- Added: The new set of functions which verify Ethash hashes against difficulty
has been added to the library: `verify_against_difficulty()` and
`verify_final_hash_against_difficulty()`. These functions improve usability
by omitting previously required difficulty to boundary conversion.
The old verification function is still available under
the `verify_against_boundary()` name but its usage is discouraged.
[#195](https://github.com/chfast/ethash/pull/195)
- Added: The dedicated procedure to convert difficulty to boundary
`ethash_difficulty_to_boundary()` has been added to the testing infrastructure
but can be promoted to the public API if requested.
[#191](https://github.com/chfast/ethash/pull/191)
- Deprecated: `verify()` has been deprecated and replaced with
`verify_against_boundary()`.
[#193](https://github.com/chfast/ethash/pull/193)
- Deprecated: `verify_final_hash()` has been replaced by
`verify_final_hash_against_difficulty()`.
[#200](https://github.com/chfast/ethash/pull/200)
- Deprecated: The ProgPoW support has been deprecated and will be removed
in the next release.
[#201](https://github.com/chfast/ethash/pull/201)
- Changed: The internal hash type comparison operators have been
optimized and the dependency on the `memcmp()` function has been dropped.
[#186](https://github.com/chfast/ethash/pull/186)
- Changed: Verification functions now return error codes instead of `bool`
with additional information about which verification check has failed.
[#187](https://github.com/chfast/ethash/pull/187)
- In C API error codes are represented by the `ethash_errc` enum,
- In C++ the error codes are wrapped into `std::error_code`.
- Changed: Some build requirements have been increased.
- C11 is required (previously C99),
[#188](https://github.com/chfast/ethash/pull/188)
- C++14 is required (previously C++11),
[#189](https://github.com/chfast/ethash/pull/189)
- CMake 3.16 is required (previously 3.13),
[#205](https://github.com/chfast/ethash/pull/205)
- Python wheels are now built with `manylinux_2_24`.
[#194](https://github.com/chfast/ethash/pull/194)


## [0.7.1] — 2021-08-26

- Added: Support for building with clang-cl (LLVM-based toolchain for Visual Studio 2019).
Expand Down Expand Up @@ -83,6 +124,7 @@
- Added: Experimental support for [ProgPoW] [0.9.1][ProgPoW-changelog].


[0.8.0]: https://github.com/chfast/ethash/compare/v0.7.1..master
[0.7.1]: https://github.com/chfast/ethash/releases/tag/v0.7.1
[0.7.0]: https://github.com/chfast/ethash/releases/tag/v0.7.0
[0.6.0]: https://github.com/chfast/ethash/releases/tag/v0.6.0
Expand Down
3 changes: 3 additions & 0 deletions include/ethash/ethash.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ struct ethash_result ethash_hash(const struct ethash_epoch_context* context,
* It also checks if the Ethash result produced out of (header_hash, nonce) matches the provided
* mix_hash.
*
* In most use-cases users should have access to the difficulty value directly therefore
* usage of ethash_verify_against_difficulty() is recommended instead.
*
* @return Error code: ::ETHASH_SUCCESS if valid, ::ETHASH_INVALID_FINAL_HASH if the final hash is
* not within provided boundary, ::ETHASH_INVALID_MIX_HASH if the provided mix hash
* mismatches the computed one.
Expand Down

0 comments on commit b87a587

Please sign in to comment.