splitDecodedBytes static method

(List<int>, List<int>) splitDecodedBytes(
  1. List<int> decBytes
)

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 (List<int>, List<int>) splitDecodedBytes(List<int> decBytes) {
  final addressRootHash = decBytes.sublist(
    0,
    QuickCrypto.blake2b224DigestSize,
  );
  final encryptedHdPath = decBytes.sublist(QuickCrypto.blake2b224DigestSize);
  return (addressRootHash, encryptedHdPath);
}