getShares

open suspend override fun getShares(): PortalKeychainClientShares?

Retrieves the shares associated with the client.

This function attempts to read the shares using the current key format. If that fails, it tries to read legacy share formats to maintain backward compatibility.

Return

The PortalKeychainClientShares if found, null otherwise.

Throws

If the client is not set.

If no share is found in current or legacy format.