Bip32KeyIndex.hardenIndex constructor

Bip32KeyIndex.hardenIndex(
  1. int index
)

Harden the specified index and return it.

Implementation

factory Bip32KeyIndex.hardenIndex(int index) {
  return Bip32KeyIndex(
      BitUtils.setBit(index, Bip32KeyDataConst.keyIndexHardenedBitNum));
}