mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
rm number of shards and threshold from shard messages
This commit is contained in:
@@ -9,13 +9,9 @@ import javax.annotation.concurrent.Immutable;
|
|||||||
public class Shard {
|
public class Shard {
|
||||||
|
|
||||||
private final byte[] secretId, shard;
|
private final byte[] secretId, shard;
|
||||||
private final int numShards, threshold;
|
|
||||||
|
|
||||||
public Shard(byte[] secretId, int numShards, int threshold,
|
public Shard(byte[] secretId, byte[] shard) {
|
||||||
byte[] shard) {
|
|
||||||
this.secretId = secretId;
|
this.secretId = secretId;
|
||||||
this.numShards = numShards;
|
|
||||||
this.threshold = threshold;
|
|
||||||
this.shard = shard;
|
this.shard = shard;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,14 +19,6 @@ public class Shard {
|
|||||||
return secretId;
|
return secretId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNumShards() {
|
|
||||||
return numShards;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getThreshold() {
|
|
||||||
return threshold;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getShard() {
|
public byte[] getShard() {
|
||||||
return shard;
|
return shard;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user