mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-27 06:18:50 +01:00
26 lines
776 B
Dart
26 lines
776 B
Dart
import 'package:cw_zano/zano_wallet.dart';
|
|
|
|
class WiExtended {
|
|
final String spendPrivateKey;
|
|
final String spendPublicKey;
|
|
final String viewPrivateKey;
|
|
final String viewPublicKey;
|
|
|
|
WiExtended(
|
|
{required this.spendPrivateKey,
|
|
required this.spendPublicKey,
|
|
required this.viewPrivateKey,
|
|
required this.viewPublicKey});
|
|
|
|
factory WiExtended.fromJson(Map<String, dynamic> json) => WiExtended(
|
|
spendPrivateKey: json['spend_private_key'] as String? ?? '',
|
|
spendPublicKey: json['spend_public_key'] as String? ?? '',
|
|
viewPrivateKey: json['view_private_key'] as String? ?? '',
|
|
viewPublicKey: json['view_public_key'] as String? ?? '',
|
|
);
|
|
|
|
Future<String> seed(ZanoWalletBase api) {
|
|
return api.getSeed();
|
|
}
|
|
}
|