We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e342db commit b1aed98Copy full SHA for b1aed98
hwilib/common.py
@@ -3,12 +3,17 @@
3
****************************
4
"""
5
6
+from dataclasses import dataclass
7
+
8
import hashlib
9
10
from enum import Enum
11
-from typing import Union
-
12
+from typing import (
13
+ List,
14
+ Optional,
15
+ Union,
16
+)
17
18
class Chain(Enum):
19
@@ -56,6 +61,15 @@ def argparse(s: str) -> Union['AddressType', str]:
56
61
except KeyError:
57
62
return s
58
63
64
+@dataclass
65
+class BIP388Policy:
66
+ """
67
+ Serialization agnostic BIP388 policy.
68
69
+ name: str
70
+ descriptor_template: str
71
+ keys_info: List[str]
72
+ hmac: Optional[str] = None
59
73
60
74
def sha256(s: bytes) -> bytes:
75
0 commit comments