mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 03:24:18 +01:00
Refactor secret conditions (#350)
* refactor spending conditions and add comments * fix kind enum deserialization
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
from enum import Enum
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
|
||||
from loguru import logger
|
||||
@@ -7,7 +8,7 @@ from pydantic import BaseModel
|
||||
from .crypto.secp import PrivateKey
|
||||
|
||||
|
||||
class SecretKind:
|
||||
class SecretKind(Enum):
|
||||
P2PK = "P2PK"
|
||||
HTLC = "HTLC"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user