A few (mostly trivial) updates (#54)

* Drop quorumMinMemberAge from LLMQ init phase

* Clarify that "hash" is "SHA256" in multiple cases

* Switch few quotes to apostrophes
This commit is contained in:
UdjinM6 2019-11-11 15:59:14 +03:00 committed by thephez
parent 5660fcdd27
commit 41fc2c9413
6 changed files with 27 additions and 28 deletions

View file

@ -136,7 +136,7 @@ ChainLock is deeper than 6 blocks.
When these checks pass, each masternode must invoke the [DIP0007
`SignIfMember` operation](https://github.com/dashpay/dips/blob/master/dip-0007.md#void-signifmemberuint256-id-uint256-msghash-int-activellmqs).
The request id for the operation is `hash("clsig-attempt", blockHeight, attemptNum)` and the
The request id for the operation is `SHA256("clsig-attempt", blockHeight, attemptNum)` and the
message hash is the hash of the new block (`newBlockHash`). The first time this
is attempted, `attemptNum` must be set to `0`. "clsig-attempt" is a static string that
must be prepended by its length (13, as a compactSize uint).
@ -169,7 +169,7 @@ After a signing attempt has succeeded, another LLMQ must sign the successful
attempt. This is only performed once for each `blockHeight` and thus either
succeeds or fails without performing additional attempts.
The request id is `hash("clsig", blockHeight)` and the message hash is the block hash of the
The request id is `SHA256("clsig", blockHeight)` and the message hash is the block hash of the
previously successful attempt.
After a LLMQ member has successfully recovered the final ChainLocks
@ -190,7 +190,7 @@ announcing it to other nodes:
1. Based on the deterministic masternode list at the given height, a quorum must be
selected that was active at the time this block was mined
2. The signature must verify against the quorum public key and
`hash(llmqType, quorumHash, hash(height), blockHash)`. `llmqType` and `quorumHash`
`SHA256(llmqType, quorumHash, SHA256(height), blockHash)`. `llmqType` and `quorumHash`
must be taken from the quorum selected in 2.