Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Jul 10, 2024
1 parent 383e032 commit 3f44d81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions cashu/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,17 +1047,13 @@ def proofs(self) -> List[Proof]:
]

@property
def dlc_root(self) -> str:
def dlc_root(self) -> Optional[str]:
return self.r

@property
def keysets(self) -> List[str]:
return list(set([p.i.hex() for p in self.t]))

@property
def keysets(self) -> List[str]:
return list(set([p.i.hex() for p in self.t]))

@classmethod
def from_tokenv3(cls, tokenv3: TokenV3):
if not len(tokenv3.mints) == 1:
Expand Down
2 changes: 2 additions & 0 deletions cashu/core/crypto/dlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from typing import Optional, Tuple
from secp256k1 import PrivateKey, PublicKey

from typing import List

def sorted_merkle_hash(left: bytes, right: bytes) -> bytes:
'''Sorts `left` and `right` in non-ascending order and
computes the hash of their concatenation
Expand Down
1 change: 1 addition & 0 deletions cashu/core/nuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
DETERMINSTIC_SECRETS_NUT = 13
MPP_NUT = 15
WEBSOCKETS_NUT = 17
DLC_NUT = 99

0 comments on commit 3f44d81

Please sign in to comment.