mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Move IdentityKeyPair generation to KeyUtils
in preparation for rust libsignal which doesn't provide the method
This commit is contained in:
parent
00339b1abe
commit
88d81c7a63
3 changed files with 15 additions and 2 deletions
|
@ -317,7 +317,7 @@ public class Manager implements Closeable {
|
|||
PathConfig pathConfig = PathConfig.createDefault(settingsPath);
|
||||
|
||||
if (!SignalAccount.userExists(pathConfig.getDataPath(), username)) {
|
||||
IdentityKeyPair identityKey = KeyHelper.generateIdentityKeyPair();
|
||||
IdentityKeyPair identityKey = KeyUtils.generateIdentityKeyPair();
|
||||
int registrationId = KeyHelper.generateRegistrationId(false);
|
||||
|
||||
ProfileKey profileKey = KeyUtils.createProfileKey();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue