update
This commit is contained in:
parent
11fc5c43bf
commit
41651ae447
13 changed files with 237 additions and 125 deletions
17
lib/security/key_pair.dart
Normal file
17
lib/security/key_pair.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:lazyxchacha/keypair.dart' as kp;
|
||||
|
||||
class KeyPairSingleton {
|
||||
static final KeyPairSingleton _instance = KeyPairSingleton._internal();
|
||||
late kp.KeyPair _keyPair;
|
||||
|
||||
factory KeyPairSingleton() {
|
||||
return _instance;
|
||||
}
|
||||
|
||||
KeyPairSingleton._internal() {
|
||||
// Initialize the KeyPair instance here
|
||||
_keyPair = kp.KeyPair();
|
||||
}
|
||||
|
||||
kp.KeyPair get keyPair => _keyPair;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue