Skip to content

Commit 53c226b

Browse files
feat(core): add Txid types to public API
- Adds Txid, TxidRef to crate root exports - Adds TxidExt to prelude module
1 parent 9601975 commit 53c226b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/core/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ pub use block_tree_entry::BlockTreeEntry;
1212
pub use script::{ScriptPubkey, ScriptPubkeyRef};
1313
pub use transaction::{
1414
Transaction, TransactionRef, TxIn, TxInRef, TxOut, TxOutPoint, TxOutPointRef, TxOutRef, Txid,
15+
TxidRef,
1516
};
1617

1718
pub use block::{BlockHashExt, BlockSpentOutputsExt, CoinExt, TransactionSpentOutputsExt};
1819
pub use script::ScriptPubkeyExt;
19-
pub use transaction::{TransactionExt, TxInExt, TxOutExt, TxOutPointExt};
20+
pub use transaction::{TransactionExt, TxInExt, TxOutExt, TxOutPointExt, TxidExt};
2021

2122
pub use verify::{verify, ScriptVerifyError, ScriptVerifyStatus};
2223

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub use crate::core::{
114114
verify, Block, BlockHash, BlockSpentOutputs, BlockSpentOutputsRef, BlockTreeEntry, Coin,
115115
CoinRef, ScriptPubkey, ScriptPubkeyRef, ScriptVerifyError, ScriptVerifyStatus, Transaction,
116116
TransactionRef, TransactionSpentOutputs, TransactionSpentOutputsRef, TxIn, TxInRef, TxOut,
117-
TxOutPoint, TxOutPointRef, TxOutRef,
117+
TxOutPoint, TxOutPointRef, TxOutRef, Txid, TxidRef,
118118
};
119119

120120
pub use crate::log::{disable_logging, Log, LogCategory, LogLevel, Logger};
@@ -139,7 +139,7 @@ pub use crate::core::verify_flags::{
139139
pub mod prelude {
140140
pub use crate::core::{
141141
BlockHashExt, BlockSpentOutputsExt, CoinExt, ScriptPubkeyExt, TransactionExt,
142-
TransactionSpentOutputsExt, TxInExt, TxOutExt, TxOutPointExt,
142+
TransactionSpentOutputsExt, TxInExt, TxOutExt, TxOutPointExt, TxidExt,
143143
};
144144
pub use crate::notifications::BlockValidationStateExt;
145145
}

0 commit comments

Comments
 (0)