accountFromSeed function

LegacyAccount accountFromSeed(
  1. Uint8List seed
)

seed → m/0/0/0 account

Implementation

LegacyAccount accountFromSeed(Uint8List seed) {
  final node = deriveDefault(seed);
  final pub = compressedPublicKey(bytesToBigInt(node.priv));
  return LegacyAccount(
      bytesToHex(node.priv), bytesToHex(pub), publicKeyToAddress(pub));
}