Skip to content

Conversation

rohenaz
Copy link
Contributor

@rohenaz rohenaz commented Oct 12, 2025

This pull request adds support for Sigma protocol signatures to several transaction creation functions, improving replay protection and security. It updates the configuration options and internal logic to handle signing with either local or remote signers. The changes also include dependency updates and enhanced tests to cover the new functionality.

Sigma protocol signature support

  • Added optional signer configuration to createOrdinals, sendUtxos, deployBsv21Token, createOrdListings, and createOrdTokenListings functions, enabling Sigma protocol signatures for replay protection. The transaction logic now handles signing and fee calculation accordingly. (src/types.ts [1] [2]; src/createOrdinals.ts [3] [4] [5] [6]; src/sendUtxos.ts [7] [8] [9] [10]; src/deployBsv21.ts [11] [12] [13]; src/createListings.ts [14] [15] [16] [17] [18] [19]

  • Updated documentation to describe the new signer option, including usage examples and a list of supported functions. (README.md README.mdL255-R276)

Testing improvements

  • Added new tests for transactions using Sigma protocol signatures with both single and multiple UTXOs, ensuring correct behavior and output structure. (src/createOrdinals.test.ts [1] src/sendUtxos.test.ts [2] src/deployBsv21.test.ts [3]

Dependency updates

  • Updated dependencies and peer dependencies to the latest versions for improved compatibility and security. (package.json package.jsonL36-R47)

Minor documentation and code fixes

  • Fixed a typo in the documentation for the Utxo type. (README.md README.mdL51-R51)

Version bump

  • Bumped package version to 0.1.83 to reflect new features and changes. (package.json package.jsonL3-R3)

- Add signer support to deployBsv21Token, sendUtxos, createOrdListings, createOrdTokenListings
- Fix fee calculation when signer uses single UTXO
- Fix spentOutpoints reporting after utxos.pop()
- Add test coverage for signer edge cases
- Update dependencies to latest versions
- Update README with signer documentation
- Bump version to 0.1.83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant