Closed
Description
Hello again :)
Sorry for a lot of questions today.
I have a class, which work with many of algos:
class SelfAlgoDBManager:
def get_key_by_type_of_seed_key_id(self, level: int, seed: bytes, params: dict) -> bytes:
..................................
Here is like here works fine:
self.client.set_config('security_algo', GetKeyByTypeOfSeedKeyId)
self.client.set_config('security_algo_params', dict(TypeOfSeedKeyId=self.data.TypeOfSeedKeyId))
def GetKeyByTypeOfSeedKeyId(level, seed, params):
..................................
Methods are same. Difference only in separate class for that thing.
Im trying to use like this:
self.client.set_config('security_algo', self.algo_db_obj.get_key_by_type_of_seed_key_id)
And I get this error:
ValueError: key must be a valid bytes object
Maybe because I have self
object in new method which in class? Thank you.
Metadata
Metadata
Assignees
Labels
No labels