convertToPublic method

void convertToPublic({
  1. bool disposeKey = true,
})

Convert this Substrate context to public-only mode.

Removes the private key, making this context only contain a public key.

Implementation

void convertToPublic({bool disposeKey = true}) {
  if (disposeKey) {
    _priveKey?.dispose();
  }
  _priveKey = null;
}