deriveHardened method

HDPrivateKey deriveHardened(
  1. int index
)

Derives a hardened key at index which only applies to private keys. The index must not include the left-bit to specify that it is hardened.

Implementation

HDPrivateKey deriveHardened(int index) {
  if (index < 0 || index >= hardenBit) {
    throw ArgumentError.value(
      index, "index", "should be below hardered index",
    );
  }
  return derive(index + hardenBit) as HDPrivateKey;
}