mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Dont accept shards from mismatched sets - all muss match the first shard received
This commit is contained in:
@@ -9,10 +9,15 @@ import java.security.GeneralSecurityException;
|
||||
|
||||
public interface RestoreAccount {
|
||||
|
||||
enum AddReturnShardPayloadResult {
|
||||
DUPLICATE,
|
||||
MISMATCH,
|
||||
OK
|
||||
}
|
||||
|
||||
int getNumberOfShards();
|
||||
|
||||
boolean addReturnShardPayload(ReturnShardPayload toAdd);
|
||||
AddReturnShardPayloadResult addReturnShardPayload(ReturnShardPayload toAdd);
|
||||
|
||||
boolean canRecover();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user