@kdfparams.setter
def kdfparams(self, kdfparams):
    if isinstance(kdfparams, dict):
        self._kdfparams = KdfParams.from_dict(kdfparams)
    else:
        self._kdfparams = kdfparams
@kdfparams.setter
def kdfparams(self, kdfparams):
    if isinstance(kdfparams, dict):
        self._kdfparams = KdfParams.from_dict(kdfparams)
    else:
        self._kdfparams = kdfparams