deriveSecretKey method

Future<SecretKey> deriveSecretKey(
  1. Password password,
  2. PasswordSalt salt
)
inherited

Implementation

Future<SecretKey> deriveSecretKey(
  Password password,
  PasswordSalt salt,
) async {
  final request = RequestSessionDeriveSecretKey(
    password: password,
    salt: salt,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseSecretKey(value: final value): return value;
    default: throw UnexpectedResponse();
  }
}