1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: CC0-1.0
//! The `Txid` type.
//!
//! In order to print and parse txids enable the "hex" feature.
use ;
use ;
use sha256d;
use crateOutPoint;
/// A bitcoin transaction hash/transaction ID.
///
/// For compatibility with the existing Bitcoin infrastructure and historical and current
/// versions of the Bitcoin Core software itself, this and other [`sha256d::Hash`] types, are
/// serialized in reverse byte order when converted to a hex string via [`std::fmt::Display`]
/// trait operations.
;
impl_debug!;
// The new hash wrapper type.
type HashType = Txid;
// The inner hash type from `hashes`.
type Inner = Hash;
include!;