mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 06:09:55 +01:00
rm number of shards and threshold from shard messages from message parserimpl
This commit is contained in:
@@ -18,12 +18,10 @@ class MessageParserImpl implements MessageParser {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Shard parseShardMessage(BdfList body) throws FormatException {
|
public Shard parseShardMessage(BdfList body) throws FormatException {
|
||||||
// Message type, secret ID, num shards, threshold, shard
|
// Message type, secret ID, shard
|
||||||
byte[] secretId = body.getRaw(1);
|
byte[] secretId = body.getRaw(1);
|
||||||
int numShards = body.getLong(2).intValue();
|
byte[] shard = body.getRaw(2);
|
||||||
int threshold = body.getLong(3).intValue();
|
return new Shard(secretId, shard);
|
||||||
byte[] shard = body.getRaw(4);
|
|
||||||
return new Shard(secretId, numShards, threshold, shard);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user