Bip32KeyIndex constructor

Bip32KeyIndex(
  1. int index
)

Implementation

factory Bip32KeyIndex(int index) {
  if (index < 0 || index > Bip32KeyDataConst.keyIndexMaxVal) {
    throw ArgumentException.invalidOperationArguments(
      "Bip32KeyIndex",
      name: "index",
      reason: "Invalid key index.",
    );
  }
  return Bip32KeyIndex._(index);
}