Remove attemptNum from CLSIG and fix description of sig verification (#39)

This commit is contained in:
Alexander Block 2019-01-24 19:43:27 +01:00 committed by thephez
parent 145063f010
commit 9e97430850

View file

@ -136,7 +136,6 @@ message is called `CLSIG` and has the following structure:
|--|--|--|--|
| prevBlockHash | uint256 | 32 | Hash of the previous block |
| blockHash | uint256 | 32 | Hash of the signed block from the successful attempt |
| attemptNum | uint16 | 2 | The attempt number |
| sig | BLSSig | 96 | Recovered signature |
This message is propagated through the inventory system.
@ -150,7 +149,9 @@ chain
`prevBlockHash`, a quorum must be selected that was active at the time this
block was mined
3. The signature must verify against the quorum public key and
`hash(blockHash, attemptNum)`.
`hash(llmqType, quorumHash, prevBlockHash, blockHash)`. `llmqType` and `quorumHash`
must be taken from the quorum selected in 2.
## Handling of signed blocks