mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
move DarkCrystal interface to briar-api
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package org.briarproject.briar.socialbackup;
|
||||
|
||||
import org.briarproject.bramble.api.crypto.SecretKey;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.briar.api.socialbackup.Shard;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.util.List;
|
||||
|
||||
@NotNullByDefault
|
||||
public
|
||||
interface DarkCrystal {
|
||||
|
||||
List<Shard> createShards(SecretKey secret, int shards, int threshold);
|
||||
SecretKey combineShards(List<Shard> shards) throws GeneralSecurityException;
|
||||
}
|
||||
Reference in New Issue
Block a user