ownerSaltFromEntropy static method
Extract owner salt from owner entropy based on lot and sequence numbers.
ownerEntropy: The owner entropy containing owner salt.hasLotSeq: A boolean flag indicating whether lot and sequence numbers are included in the owner entropy.
Implementation
static List<int> ownerSaltFromEntropy(
List<int> ownerEntropy,
bool hasLotSeq,
) {
return hasLotSeq
? ownerEntropy.sublist(0, Bip38EcConst.ownerSaltWithLotSeqByteLen)
: ownerEntropy;
}