Skip to content

Commit 13e404d

Browse files
author
Docs Syncer
committed
CI: 949a99d
1 parent f78e781 commit 13e404d

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

docs/reference/contracts/libs/bitcoin/TxParser.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff 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
126148
function formatTransaction(
127-
TxParser.Transaction calldata tx_,
149+
TxParser.Transaction memory tx_,
128150
bool withWitness_
129151
) internal pure returns (bytes memory)
130152
```

0 commit comments

Comments
 (0)