generateMasterKey function
Implementation
Set<Uint8List> generateMasterKey(Uint8List seed) {
final hmacSha512 = Hmac(
sha512,
'ed25519 seed'.plainToU8a(useDartEncode: true),
); // HMAC-SHA512
final h = hmacSha512.convert(seed);
final slipSeed = Uint8List.fromList(h.bytes.sublist(0, 32));
final chainCode = Uint8List.fromList(h.bytes.sublist(32));
return {slipSeed, chainCode};
}