This commit is contained in:
Patrick Alvin Alcala 2025-02-25 17:22:13 +08:00
parent 11fc5c43bf
commit 41651ae447
13 changed files with 237 additions and 125 deletions

View 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;
}