bitcoin-sv / ts-sdk

Other
51 stars 13 forks source link

Add Beef, BeefTx, BeefParty classes and unit test #131

Closed tonesnotes closed 1 month ago

tonesnotes commented 1 month ago

Description of Changes

The Beef class supports the incremental creation of serialized BEEF objects including merging individual transactions, bumps and additional beefs.

It extends the usefulness of the BEEF standard to use cases where the transactions do not necessarily form a tree with a single root transaction.

It supports an extension (V2) to the BEEF standard that supports representing transactions as just txids. This supports use cases where raw transactions are large and serialized beefs are returned, with additions, to their source. The producer of such a beef can express that they already have this raw transaction, and a proof of its validity.

Linked Issues / Tickets

BRCs are being written to cover these additions to the SDK.

Testing Procedure

Describe the tests you've added or any testing steps you've taken.

Checklist: