change method
derive change with change type Bip44Changes internal or external
Implementation
@override
Bip86 change(Bip44Changes changeType) {
if (!isLevel(Bip44Levels.account)) {
throw Bip44DepthError(
"Current depth (${bip32.depth.toInt()}) is not suitable for deriving change");
}
Bip32KeyIndex changeIndex = Bip32KeyIndex(changeType.value);
if (!bip32Object.isPublicDerivationSupported) {
changeIndex = Bip32KeyIndex.hardenIndex(changeType.value);
}
return Bip86._(bip32.childKey(changeIndex), coinConf);
}