splitDecodedBytes static method
Splits the decoded bytes into address root hash and encrypted HD path.
The decBytes
parameter represents the decoded bytes containing both address root hash
and encrypted HD path.
Returns a tuple containing two List<int> elements: address root hash and encrypted HD path.
Implementation
static Tuple<List<int>, List<int>> splitDecodedBytes(List<int> decBytes) {
final addressRootHash =
List<int>.from(decBytes.sublist(0, QuickCrypto.blake2b224DigestSize));
final encryptedHdPath =
List<int>.from(decBytes.sublist(QuickCrypto.blake2b224DigestSize));
return Tuple(addressRootHash, encryptedHdPath);
}