stacks-network / sbtc-developer-release

sBTC primitives, signer components, helper tools
https://sbtc.tech
MIT License
1.98k stars 23 forks source link

[stacks-signer] perform signing rounds over the hash of a nakamoto block #380

Closed jferrant closed 6 months ago

jferrant commented 11 months ago

Description

Update signers to perform signing rounds Nakamoto block stacker signature hash (the entire block header including miner signature but NOT including stacker signature)

Context

Signers are responsible for validating/signing Nakamoto blocks and returning them to the miner. This ticket enables us to perform the actual signing side of things.

Expected Approach

The message bytes being sent via the signing rounds need to include probably some message type to indicate what type of thing is being signed so that signers can deserialize the contents into a nakamoto block vs btc transaction to inspect. Signers should be able to decide whether they want to sign or not so being able to inspect the contents is required as part of this ticket.

Acceptance Criteria