getFullWalletFromWif method

Future<FullWallet> getFullWalletFromWif(
  1. Wif wif
)

Gets a full wallet from the supplied wif

Future

Implementation

Future<FullWallet> getFullWalletFromWif(Wif wif) async {
  var networkPrivateKey = getPrivateKeyAndNetworkFromWif(wif);
  HexPrivateKey hexPrivateKey = networkPrivateKey.hexPrivateKey!;
  NetworkPrefix networkPrefix = networkPrivateKey.networkPrefix!;
  var hexPublicKey = await getPublicKeyFromPrivateKey(hexPrivateKey);
  var address = generateAddress(hexPublicKey, networkPrefix);
  return FullWallet(hexPublicKey, hexPrivateKey, wif, address, networkPrefix);
}