getMasterKeyFromSeed function

Keys getMasterKeyFromSeed(
  1. String seed
)

Implementation

Keys getMasterKeyFromSeed(String seed) {
  final keyBytes = Uint8List.fromList(utf8.encode(HMAC_KEY));
  final seedBytes = Uint8List.fromList(HEX.decode(seed));
  final digest = hmacSha512(keyBytes, seedBytes);
  final IL = digest.sublist(0, 32);
  final IR = digest.sublist(32);
  return Keys(key: IL, chainCode: IR);
}