SessionConfig constructor

SessionConfig({
  1. required CloudClient cloudClient,
  2. required String cloudVerifyingKeyHex,
  3. required StorageClientInterface<StorageKeyshare> storageClient,
  4. Protocol protocol = Protocol.duo,
})

Constructor for the SessionConfig.

  • CloudClient is used to communicate with the cloud node.
  • StorageClientInterface is used to store the keyshares.
  • cloudVerifyingKeyHex is 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;