Skip to content

Commit

Permalink
chore: update reamde
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisfc68 committed May 21, 2024
1 parent 9f35c2f commit 4d0886c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ The intention of this library is to make easier to work with Bitcoin transaction
## Features

The features of this library include:
* Bitcoin transaction output parsing: is able to receive a raw tx and return an array of structs with the tx outputs
* Bitcoin transaction output parsing: is able to receive a raw tx and return an array of structures with the tx outputs
* Bitcoin transaction hashing: is able to receive a raw tx and return its hash
* Bitcoin transaction output script validation: is able to receive a raw output script, validate that is from a specific type and return a result. E.g. receive a raw null-data script and return the embeded data in it
* Bitcoin transaction output script validation: is able to receive a raw output script, validate that is from a specific type and return a result. E.g. receive a raw null-data script and return the embedded data in it
* Bitcoin address generation: is able to generate Bitcoin the address from a specific script and also to validate if a given address was generated from a script or not.
* Bitcoin address validation: is able to validate if a Bitcoin address is of a given type or not.

### Future features
These are some features that can increase the library capabilities in the future:
Expand Down
2 changes: 1 addition & 1 deletion contracts/BtcUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ library BtcUtils {
}

function extractRawOutput(uint position, bytes memory rawTx) private pure returns (TxRawOutput memory) {
TxRawOutput memory result;
TxRawOutput memory result = TxRawOutput(0, "", 0, 0);
result.value = uint64(calculateLittleEndianFragment(position, position + OUTPUT_VALUE_SIZE, rawTx));
position += OUTPUT_VALUE_SIZE;

Expand Down

0 comments on commit 4d0886c

Please sign in to comment.