rust-bitcoin-unsafe-fast/bitcoin/src
Tobin C. Harding 0419fa278b
Add VarInt from implementations by way of macro
Throughout the codebase we cast values to `u64` when constructing a
`VarInt`. We can make the code marginally cleaner by adding `From<T>`
impls for all unsigned integer types less than or equal to 64 bits.
Also allows us to (possibly unnecessarily) comment the cast in a single
place.
2023-08-24 10:37:53 +10:00
..
blockdata Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
consensus Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
crypto Remove usage of ThirtyTwoByteHash 2023-08-23 12:21:26 +10:00
merkle_tree Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
p2p Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
psbt Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
address.rs Merge rust-bitcoin/rust-bitcoin#1914: Move type definitions of pubkey/script hash types 2023-08-02 13:57:39 +00:00
amount.rs Use from_int_btc function for const context 2023-06-13 11:32:58 +02:00
base58.rs Merge rust-bitcoin/rust-bitcoin#1957: Remove deprecated code 2023-08-02 13:40:50 +00:00
bip32.rs Move p2p::constants::Network to crate root 2023-08-01 16:46:59 +10:00
bip152.rs Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
bip158.rs Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
error.rs Move `impl_std_error` to `bitcoin-internals` 2023-05-30 18:04:54 +02:00
hash_types.rs Improve the ScriptHash and WScriptHash types 2023-08-02 11:28:14 +10:00
internal_macros.rs Depend on hex-conservative 2023-07-21 10:59:46 +10:00
lib.rs Expose XonlyPublicKey and TapSighashType in crate root 2023-08-12 16:28:35 -07:00
network.rs Move p2p::constants::Network to crate root 2023-08-01 16:46:59 +10:00
parse.rs Use standard set of derives on all error types 2023-07-28 06:15:49 +10:00
policy.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00
pow.rs Use standard set of derives on all error types 2023-07-28 06:15:49 +10:00
serde_utils.rs Depend on hex-conservative 2023-07-21 10:59:46 +10:00
sign_message.rs Add VarInt from implementations by way of macro 2023-08-24 10:37:53 +10:00
string.rs Use standard set of derives on all error types 2023-07-28 06:15:49 +10:00
taproot.rs Merge rust-bitcoin/rust-bitcoin#1957: Remove deprecated code 2023-08-02 13:40:50 +00:00
test_macros.rs bitcoin: Remove attribution from all files 2023-05-01 09:22:48 +10:00