P2P - qbsig example update

This commit is contained in:
thephez 2019-04-11 13:30:12 -04:00
parent 6cde99be24
commit ce31b4ef10
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099

View file

@ -3148,16 +3148,16 @@ Note: The number of messages that can be sent in a batch is limited to 400
| Bytes | Name | Data type | Description |
| --- | --- | --- | --- |
| Varies | count | compactSize uint | Number of batched signature shares |
| Varies | batchCount | 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 |
| Varies | count | compactSize uint | Number of shares |
| count * 98 | sigShares | <uint16_t, CBLSLazySignature> | Index (2 bytes) and BLS Signature share (96 bytes) |
| Varies | sessionId | varint | Signing session ID |
| Varies | shareCount | compactSize uint | Number of shares |
| shareCount * 98 | sigShares | <uint16_t, CBLSLazySignature> | Index (2 bytes) and BLS Signature share (96 bytes) |
The following annotated hexdump shows a `qbsigs` message. (The
message header has been omitted.)
@ -3170,28 +3170,35 @@ cee2caff716273696773000000000000cd000000a892e03f
{% highlight text %}
02 ......................................... Number of signature share batches: 2
Signature Shares
Signature Share Batch 1
| 84d843 ................................... Session ID
|
| 01 ....................................... Number of shares
| 2100 ..................................... Index
| 0fbd0c0981b79544c3e80d1a2eed13fe
| f08c731b0156654675209812f9b2b8f3
| ec23868d26890a0e85e5cec4ad0e2d46
| 01293cf7e41841fda5865063e7354f36
| e8a5c13d2c2d265a778f41e807b3cc63
| 81e202ecf923c62bbb69ecc713bdf86d ......... BLS Signature share
| 01 ....................................... Share count: 1
|
| Share
| | 2100 ................................... Index
|
| | 0fbd0c0981b79544c3e80d1a2eed13fe
| | f08c731b0156654675209812f9b2b8f3
| | ec23868d26890a0e85e5cec4ad0e2d46
| | 01293cf7e41841fda5865063e7354f36
| | e8a5c13d2c2d265a778f41e807b3cc63
| | 81e202ecf923c62bbb69ecc713bdf86d ....... BLS Signature share
Signature Shares
Signature Share Batch 2
| 84d844 ................................... Session ID
| 01 ....................................... Number of shares
| 2100 ..................................... Index
| 9570d97e41b78045b51fba3d4f1ea38d
| 7a0e007535ce6beb1e03eff163b421fd
| b8125142a12f92aa82770de7bb038207
| 13ccc72dd6d9bf91ecc2835da54a0afb
| 0c0fa5d7a214a020ca650ca202ddff29
| c3cac4033098297d2aaee098db5bfe2f ......... BLS Signature share
|
| 01 ....................................... Share Count: 1
|
| Share
| | 2100 ................................... Index
| |
| | 9570d97e41b78045b51fba3d4f1ea38d
| | 7a0e007535ce6beb1e03eff163b421fd
| | b8125142a12f92aa82770de7bb038207
| | 13ccc72dd6d9bf91ecc2835da54a0afb
| | 0c0fa5d7a214a020ca650ca202ddff29
| | c3cac4033098297d2aaee098db5bfe2f ....... BLS Signature share
{% endhighlight %}
{% endautocrossref %}