diff --git a/storb/challenge/__init__.py b/storb/challenge/__init__.py index fac069f..9048bc1 100644 --- a/storb/challenge/__init__.py +++ b/storb/challenge/__init__.py @@ -190,7 +190,7 @@ def serialize_prf_value(self, prf_value: bytes) -> str: return base64.b64encode(prf_value).decode("utf-8") @field_validator("prf_value", mode="before") - def deserialize_prf_value(cls, value): + def deserialize_prf_value(self, value): """Deserialize PRF value from base64.""" if isinstance(value, str): @@ -292,7 +292,7 @@ def serialize_prf_key(self, prf_key: bytes) -> str: return prf_key @field_validator("prf_key", mode="before") - def deserialize_prf_key(cls, value): + def deserialize_prf_key(self, value): """Deserialize PRF key from base64.""" if isinstance(value, str): @@ -304,7 +304,7 @@ def deserialize_prf_key(cls, value): return value @field_validator("prp_key", mode="before") - def deserialize_prp_key(cls, value): + def deserialize_prp_key(self, value): """Deserialize PRP key from base64.""" if isinstance(value, str): diff --git a/storb/miner/__main__.py b/storb/miner/__main__.py index 0be648a..53be9f8 100644 --- a/storb/miner/__main__.py +++ b/storb/miner/__main__.py @@ -1,9 +1,8 @@ import asyncio import time -from storb.util.logging import get_logger - from storb.miner import Miner +from storb.util.logging import get_logger logger = get_logger(__name__) diff --git a/storb/util/message_signing.py b/storb/util/message_signing.py index b82d48a..4bb63b0 100644 --- a/storb/util/message_signing.py +++ b/storb/util/message_signing.py @@ -1,5 +1,4 @@ from binascii import unhexlify -from typing import Union from pydantic import BaseModel from substrateinterface import Keypair diff --git a/storb/util/uids.py b/storb/util/uids.py index 44a1bc0..a8f8064 100644 --- a/storb/util/uids.py +++ b/storb/util/uids.py @@ -1,6 +1,5 @@ import random -import numpy as np from fiber.chain.metagraph import Metagraph from storb.neuron import Neuron