From dfc54ab199b373af5f6a963dc81ec82cc8d7cc20 Mon Sep 17 00:00:00 2001 From: thephez Date: Thu, 11 Apr 2019 12:14:03 -0400 Subject: [PATCH] P2P - Add more qbsigs details --- _includes/devdoc/ref_p2p_networking.md | 40 ++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/_includes/devdoc/ref_p2p_networking.md b/_includes/devdoc/ref_p2p_networking.md index e9db961c..dec63313 100644 --- a/_includes/devdoc/ref_p2p_networking.md +++ b/_includes/devdoc/ref_p2p_networking.md @@ -3148,24 +3148,52 @@ Note: The number of messages that can be sent in a batch is limited to 400 | Bytes | Name | Data type | Description | | --- | --- | --- | --- | -| Varies | msgs | CBatchedSigShares | Batches of signature shares +| Varies | count | compactSize uint | Number of batched signature shares | +| Varies | msgs | CBatchedSigShares | Batches of signature shares | CBatchedSigShares: | Bytes | Name | Data type | Description | | --- | --- | --- | --- | -| 4 | sessionId | uint32_t | Signing session ID -| | sigShares | | +| 4 | sessionId | uint32_t | Signing session ID | +| Varies | count | compactSize uint | Number of shares | +| count * 98 | sigShares | | Index (2 bytes) and BLS Signature share (96 bytes) | - +{% highlight text %} +02 ......................................... Number of signature share batches: 2 + +Signature Shares +| 84d843 ................................... Session ID +| +| 01 ....................................... Number of shares +| 2100 ..................................... Index +| 0fbd0c0981b79544c3e80d1a2eed13fe +| f08c731b0156654675209812f9b2b8f3 +| ec23868d26890a0e85e5cec4ad0e2d46 +| 01293cf7e41841fda5865063e7354f36 +| e8a5c13d2c2d265a778f41e807b3cc63 +| 81e202ecf923c62bbb69ecc713bdf86d ......... BLS Signature share + +Signature Shares +| 84d844 ................................... Session ID +| 01 ....................................... Number of shares +| 2100 ..................................... Index +| 9570d97e41b78045b51fba3d4f1ea38d +| 7a0e007535ce6beb1e03eff163b421fd +| b8125142a12f92aa82770de7bb038207 +| 13ccc72dd6d9bf91ecc2835da54a0afb +| 0c0fa5d7a214a020ca650ca202ddff29 +| c3cac4033098297d2aaee098db5bfe2f ......... BLS Signature share {% endhighlight %} ---> {% endautocrossref %}