Closed Shadouts closed 7 months ago
Latest commit: f922a85720c476cf1ac439a0bd7efe546507bbf2
The changes in this PR will be included in the next version bump.
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
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 |
This change adds several getter methods to PsbtV2 to support operator role validation:
get isReadyForConstructor
get isReadyForUpdater
get isReadyForSigner
get isReadyForCombiner
get isReadyForInputFinalizer
get isReadyForTransactionExtractor
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.
addInput
,addOutput
,deleteInput
,deleteOutput
, anddangerouslySetGlobalTxVersion1
checksisReadyForConstructor
addPartialSig
checksisReadyForSigner