Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify SignerCommand::Sign type to not sign blocks with taproot #4519

Open
hstove opened this issue Mar 11, 2024 · 3 comments
Open

Modify SignerCommand::Sign type to not sign blocks with taproot #4519

hstove opened this issue Mar 11, 2024 · 3 comments

Comments

@hstove
Copy link
Contributor

hstove commented Mar 11, 2024

Right now, the SignCommand::Sign type takes a block and a is_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 the is_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.

@xoloki
Copy link
Collaborator

xoloki commented Mar 11, 2024

Nakamoto will not sign with taproot, but sBTC will.

It seems more forward looking to fix signer DB to support this.

@hstove
Copy link
Contributor Author

hstove commented Mar 14, 2024

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)?

@netrome
Copy link
Contributor

netrome commented Mar 15, 2024

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 think that makes more sense. In sBTC we'll sign BTC transactions and not Stacks blocks as the Nakamoto signer does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

4 participants