mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-29 17:46:23 -05:00
27 lines
676 B
Dart
27 lines
676 B
Dart
|
import 'package:meta/meta.dart';
|
||
|
import 'package:veilid_support/veilid_support.dart';
|
||
|
|
||
|
import 'local_account/local_account.dart';
|
||
|
import 'user_login/user_login.dart';
|
||
|
|
||
|
@immutable
|
||
|
class ActiveAccountInfo {
|
||
|
const ActiveAccountInfo({
|
||
|
required this.localAccount,
|
||
|
required this.userLogin,
|
||
|
required this.accountRecord,
|
||
|
});
|
||
|
//
|
||
|
|
||
|
KeyPair getConversationWriter() {
|
||
|
final identityKey = localAccount.identityMaster.identityPublicKey;
|
||
|
final identitySecret = userLogin.identitySecret;
|
||
|
return KeyPair(key: identityKey, secret: identitySecret.value);
|
||
|
}
|
||
|
|
||
|
//
|
||
|
final LocalAccount localAccount;
|
||
|
final UserLogin userLogin;
|
||
|
final DHTRecord accountRecord;
|
||
|
}
|