hdPathKey property
Computes and returns the HD path key for Cardano Byron Legacy wallet.
The HD path key is derived using the PBKDF2 key derivation function based on the wallet's public key (compressed), chain code, and specified parameters.
Returns:
- A List
Implementation
List<int> get hdPathKey {
final hdPath = QuickCrypto.pbkdf2DeriveKey(
password: List<int>.from([
...bip32.publicKey.compressed.sublist(1),
...bip32.chainCode.toBytes()
]),
salt: StringUtils.encode(CardanoByronLegacyConst.hdPathKeyPbkdf2Salt),
dklen: CardanoByronLegacyConst.hdPathKeyPbkdf2OutByteLen,
iterations: CardanoByronLegacyConst.hdPathKeyPbkdf2Rounds);
return hdPath;
}