privateKey property

  1. @override
Bip32PrivateKey get privateKey
override

Gets the private key of this BIP-32 key.

Implementation

@override
Bip32PrivateKey get privateKey {
  if (isPublicOnly) {
    throw const Bip32KeyError(
      'Public-only deterministic keys have no private half',
    );
  }
  return _privKey!;
}