derive method

  1. @override
HDGroupKeyInfo derive(
  1. int index
)
override

Derive child key information using unhardened BIP32 derivation. Hardened derivation is not possible.

Implementation

@override
HDGroupKeyInfo derive(int index) {
  final (tweak, newHdInfo) = hdInfo.deriveTweakAndInfo(groupKey, index);
  return HDGroupKeyInfo(
    groupKey: groupKey.tweak(tweak)!,
    threshold: threshold,
    hdInfo: newHdInfo,
  );
}