priveKey property
SubstratePrvKey
get
priveKey
Get the private key associated with this Substrate context.
Throws a SubstrateKeyError if this context is public-only.
Implementation
SubstratePrvKey get priveKey {
if (isPublicOnly) {
throw const SubstrateKeyError(
'Public-only deterministic keys have no private half');
}
return _priveKey!;
}