SessionConfig constructor
- required CloudClient cloudClient,
- required String cloudVerifyingKeyHex,
- required StorageClientInterface<
StorageKeyshare> storageClient, - Protocol protocol = Protocol.duo,
Constructor for the SessionConfig.
- CloudClient is used to communicate with the cloud node.
- StorageClientInterface is used to store the keyshares.
cloudVerifyingKeyHexis the verifying key of the cloud node.- Protocol is the protocol of the session.
Implementation
SessionConfig({
required this.cloudClient,
required String cloudVerifyingKeyHex,
required this.storageClient,
this.protocol = Protocol.duo,
}) : cloudVerifyingKeyHex = cloudVerifyingKeyHex.startsWith('01') ? cloudVerifyingKeyHex.substring(2) : cloudVerifyingKeyHex;