Add DB method for setting local handshake key pair.

This commit is contained in:
akwizgran
2019-04-22 16:59:36 +01:00
parent 8183a48ebb
commit 8c315382e2
6 changed files with 95 additions and 6 deletions

View File

@@ -619,6 +619,12 @@ public interface DatabaseComponent {
void addMessageDependencies(Transaction txn, Message dependent,
Collection<MessageId> dependencies) throws DbException;
/**
* Sets the handshake key pair for the local pseudonym with the given ID.
*/
void setHandshakeKeyPair(Transaction txn, AuthorId local, byte[] publicKey,
byte[] privateKey) throws DbException;
/**
* Sets the reordering window for the given transport key set in the given
* time period.