mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
13 lines
306 B
Dart
13 lines
306 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.bitcoin:
|
|
return generateKey();
|
|
default:
|
|
return Uuid().v4();
|
|
}
|
|
}
|