Bip32FingerPrint constructor

Bip32FingerPrint([
  1. List<int>? fprint
])

Implementation

factory Bip32FingerPrint([List<int>? fprint]) {
  fprint ??= List<int>.from(Bip32KeyDataConst.fingerprintMasterKey);
  if (fprint.length < fixedLength()) {
    throw const ArgumentException("Invalid fingerprint length");
  }
  fprint = fprint.sublist(0, fixedLength());
  return Bip32FingerPrint._(fprint);
}