caravan-bitcoin / caravan

Caravan monorepo
https://caravanmultisig.com
MIT License
37 stars 32 forks source link

Psbtv2 operator role validation #65

Closed Shadouts closed 7 months ago

Shadouts commented 8 months ago

This change adds several getter methods to PsbtV2 to support operator role validation:

These getters return true when the psbt is ready for actions by the role it is named after. isReadyForInputFinalizer has yet to be implemented. It is likely that the psbt may be ready for more than one role in any state.

These getters are used in a few public methods to validate that the psbt is ready for the role for which is responsible of the action. The methods will throw if the psbt is not ready for that role.

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: f922a85720c476cf1ac439a0bd7efe546507bbf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------- | ----- | | @caravan/psbt | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
caravan-coordinator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2024 6:57pm