getShare

open suspend override fun getShare(chainId: String): PortalMpcGeneratedShare

Retrieves a cryptographic share for a specific chain ID.

Return

The PortalMpcGeneratedShare if found.

Parameters

chainId

The ID of the chain for which to retrieve the share.

Throws

If no share is found or chainId is in the wrong format.

if client is null.


open suspend override fun getShare(namespace: PortalNamespace): PortalMpcGeneratedShare

Retrieves a cryptographic share for a specific PortalNamespace.

This function first attempts to read the share using the current key format. If that fails, it falls back to reading legacy share formats.

Return

The PortalMpcGeneratedShare if found.

Parameters

namespace

The PortalNamespace for which to retrieve the share.

Throws

If no share is found.

If the client is not set.