Open hstove opened 8 months ago
Nakamoto will not sign with taproot, but sBTC will.
It seems more forward looking to fix signer DB to support this.
Yeah I do follow that reasoning, but when signing for sBTC, will the type need a block
field? Am I wrong that it would make more sense to have types like SignCommand::SignBlock(block)
and SignCommand::SignTx(tx)
?
Yeah I do follow that reasoning, but when signing for sBTC, will the type need a
block
field? Am I wrong that it would make more sense to have types likeSignCommand::SignBlock(block)
andSignCommand::SignTx(tx)
?
Yeah I think that makes more sense. In sBTC we'll sign BTC transactions and not Stacks blocks as the Nakamoto signer does.
Right now, the
SignCommand::Sign
type takes ablock
and ais_taproot
boolean flag. The newly added SignerDB doesn't differentiate between taproot or schnoor block signatures, which can lead to issues. We either need to update SignerDB to add theis_taproot
flag, or just remove the ability for these block signature commands to use taproot. My understanding is that the latter is better, because we won't be using taproot signatures to sign blocks.