mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
13 lines
305 B
Dart
13 lines
305 B
Dart
import 'package:uuid/uuid.dart';
|
|
import 'package:cake_wallet/bitcoin/key.dart';
|
|
import 'package:cake_wallet/entities/wallet_type.dart';
|
|
|
|
String generateWalletPassword(WalletType type) {
|
|
switch (type) {
|
|
case WalletType.monero:
|
|
return Uuid().v4();
|
|
default:
|
|
return generateKey();
|
|
}
|
|
}
|