mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-18 23:24:20 +01:00
fix
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ from cashu.core.base import (
|
||||
SplitRequest,
|
||||
)
|
||||
from cashu.core.errors import CashuError
|
||||
|
||||
from cashu.mint import ledger
|
||||
|
||||
router: APIRouter = APIRouter()
|
||||
|
||||
Reference in New Issue
Block a user