rust-bitcoin-unsafe-fast/fuzz/fuzz_targets
Tobin C. Harding cb9893c4a9 Add Target and Difficulty types
Currently we use the `Uint256` type to represent two proof of work
integers, namely target and difficulty (work).

It would be nice to not have a public integer type that is not fully
implemented (i.e., does not implement arithmetic etc as do integer types
in stdlib). Instead of implementing all the stdlib functions we can
instead add two new wrapper types, since these are not general purpose
integers they do not need to implement anything we do not need to use.

- Add a `pow` module.
- Put a modified version of `Uint256` to `pow`.
- Add two new wrapper types `Target` and `Difficulty`.
- Only implement methods that we use on each type.

Note this patch does not remove the original `Uint256`, that will be
done as a separate patch.
2022-09-28 04:16:59 +10:00
..
deser_net_msg.rs Use new inclusive range syntax 2020-10-08 17:08:51 +03:00
deserialize_address.rs Move the address module out of util 2022-08-12 07:35:15 +10:00
deserialize_amount.rs Use new inclusive range syntax 2020-10-08 17:08:51 +03:00
deserialize_block.rs Use new inclusive range syntax 2020-10-08 17:08:51 +03:00
deserialize_prefilled_transaction.rs Add fuzz test for PrefilledTransaction 2022-09-16 13:02:24 +10:00
deserialize_psbt.rs Use new inclusive range syntax 2020-10-08 17:08:51 +03:00
deserialize_script.rs Move the address module out of util 2022-08-12 07:35:15 +10:00
deserialize_transaction.rs Remove code deprecated in v0.28.0 2022-09-15 13:29:02 +10:00
deserialize_witness.rs Add fuzzing for Witness struct 2021-12-28 09:56:41 +01:00
outpoint_string.rs Use new inclusive range syntax 2020-10-08 17:08:51 +03:00
script_bytes_to_asm_fmt.rs Added fuzz test for `Script::bytes_to_asm_fmt` 2021-09-30 15:06:18 +02:00