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 if no shares exist on device.

Throws

If the client is not set.

If share data is present but cannot be parsed.