masterPrivateKey property

IPrivateKey get masterPrivateKey

Get the master private key, throwing an exception if it's a public-only key.

Implementation

IPrivateKey get masterPrivateKey {
  if (isPublicOnly) {
    throw const ElectrumException(
      'Public-only deterministic keys have no private half',
    );
  }
  return privateKey!;
}