Files
hash-wallet/lib/core/generate_wallet_password.dart
T
2020-06-20 10:10:00 +03:00

13 lines
315 B
Dart

import 'package:uuid/uuid.dart';
import 'package:cake_wallet/bitcoin/key.dart';
import 'package:cake_wallet/src/domain/common/wallet_type.dart';
String generateWalletPassword(WalletType type) {
switch (type) {
case WalletType.bitcoin:
return generateKey();
default:
return Uuid().v4();
}
}