deriveHardened method
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;
}