transaction.py: introduce TxOutputHwInfo namedtuple
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
# Note: The deserialization code originally comes from ABE.
|
||||
|
||||
from typing import Sequence, Union, NamedTuple
|
||||
from typing import Sequence, Union, NamedTuple, Tuple, Optional, Iterable
|
||||
|
||||
from .util import print_error, profiler
|
||||
|
||||
@@ -63,6 +63,11 @@ TxOutput = NamedTuple("TxOutput", [('type', int), ('address', str), ('value', Un
|
||||
# ^ value is str when the output is set to max: '!'
|
||||
|
||||
|
||||
TxOutputHwInfo = NamedTuple("TxOutputHwInfo", [('address_index', Tuple),
|
||||
('sorted_xpubs', Iterable[str]),
|
||||
('num_sig', Optional[int])])
|
||||
|
||||
|
||||
class BCDataStream(object):
|
||||
def __init__(self):
|
||||
self.input = None
|
||||
|
||||
Reference in New Issue
Block a user