Wallet.fromJson constructor
Creates a new Wallet instance from the given json
and privateKey
.
Implementation
factory Wallet.fromJson(
Map<String, dynamic> json,
Uint8List privateKey,
) {
return Wallet(
address: Uint8List.fromList(HEX.decode(json['hex_address'] as String)),
publicKey: Uint8List.fromList(HEX.decode(json['public_key'] as String)),
privateKey: privateKey,
networkInfo: NetworkInfo.fromJson(
json['network_info'] as Map<String, dynamic>,
),
);
}