This commit is contained in:
callebtc
2022-10-09 10:54:42 +02:00
parent 590a1a349a
commit 2c93fee565
3 changed files with 5 additions and 3 deletions

View File

@@ -268,8 +268,10 @@ class MintKeyset:
def from_row(cls, row: Row):
if row is None:
return cls
# fix to convert byte to string, unclear why this is necessary
id = row[0].decode("ascii") if type(row[0]) == bytes else row[0]
return cls(
id=row[0].decode("ascii"),
id=id,
derivation_path=row[1],
valid_from=row[2],
valid_to=row[3],

View File

@@ -1,6 +1,7 @@
import base64
import hashlib
from typing import Dict, List
import base64
from cashu.core.secp import PrivateKey, PublicKey
from cashu.core.settings import MAX_ORDER

View File

@@ -15,7 +15,6 @@ from cashu.core.base import (
SplitRequest,
)
from cashu.core.errors import CashuError
from cashu.mint import ledger
router: APIRouter = APIRouter()