Closed jferrant closed 6 months ago
Pox-4 is mainly about stacking, the result of the dkg round could go into sbtc-db.clar
This is the "cast the vote for aggregate public key and tapscripts/taproot address" issue. Note that all tapleafs must be disclosed to verify that there are no hidden spending conditions.
Pasting design doc that mentions this issue for reference: https://docs.google.com/document/d/1IFTaHjEGHJkdFiEfKNayfmD0UlseoXpVcoMgJv0VW1g/edit?usp=sharing
Re-reading your most recent comment @jcnelson, here confirming this means we need a parameter or two for the tapleafs so we can verify no hidden conditions using a merkle proof?
We need the votes to contain enough data to reconstruct all tapleaf scripts. The pox-4 contract does not need to validate them (the node will do this), but we do need to have enough data to prove that there can be no other spending conditions besides the stackers' spending the wallet and the user clawing back an unclaimed deposit.
Currently stacks-signer does not publish the results of a DKG round anywhere. It should be stored within the .pox-4 contract.
Relates to https://github.com/stacks-network/stacks-blockchain/issues/3968 Relates to https://github.com/stacks-network/stacks-blockchain/issues/3972
Duplicates https://github.com/stacks-network/sbtc/issues/392 and https://github.com/stacks-network/sbtc/issues/394