mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-29 22:44:30 +01:00
* port changes from dleq branch * adjust tests * fix tag serialization * refactor p2pk and secrets into a new Protocol class * clean up code * refactor p2pk types from base * test second refund pubkey
17 lines
269 B
Python
17 lines
269 B
Python
from typing import Protocol
|
|
|
|
from ..core.crypto.secp import PrivateKey
|
|
from ..core.db import Database
|
|
|
|
|
|
class SupportsPrivateKey(Protocol):
|
|
private_key: PrivateKey
|
|
|
|
|
|
class SupportsDb(Protocol):
|
|
db: Database
|
|
|
|
|
|
class SupportsKeysets(Protocol):
|
|
keyset_id: str
|