File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
docs/reference/contracts/libs/bitcoin Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,28 @@ Return values:
9595| :--- | :------ | :----------------- |
9696| [ 0] | bytes32 | The transaction ID |
9797
98+ ### calculateWTxId
99+
100+ ``` solidity
101+ function calculateWTxId(bytes calldata data_) internal pure returns (bytes32)
102+ ```
103+
104+ Calculate witness transaction ID (hash with witness data)
105+
106+
107+ Parameters:
108+
109+ | Name | Type | Description |
110+ | :---- | :---- | :------------------------ |
111+ | data_ | bytes | The raw transaction data |
112+
113+
114+ Return values:
115+
116+ | Name | Type | Description |
117+ | :--- | :------ | :------------------------- |
118+ | [ 0] | bytes32 | The witness transaction ID |
119+
98120### parseTransaction
99121
100122``` solidity
@@ -124,7 +146,7 @@ Return values:
124146
125147``` solidity
126148function formatTransaction(
127- TxParser.Transaction calldata tx_,
149+ TxParser.Transaction memory tx_,
128150 bool withWitness_
129151) internal pure returns (bytes memory)
130152```
You can’t perform that action at this time.
0 commit comments