1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-03 05:12:34 +00:00
trezor-firmware/src/trezor/messages/Storage.py
2017-07-28 18:58:31 +02:00

22 lines
722 B
Python

# Automatically generated by pb2py
import protobuf as p
from .HDNodeType import HDNodeType
class Storage(p.MessageType):
FIELDS = {
1: ('version', p.UVarintType, 0), # required
2: ('node', HDNodeType, 0),
3: ('mnemonic', p.UnicodeType, 0),
4: ('passphrase_protection', p.BoolType, 0),
5: ('pin_failed_attempts', p.UVarintType, 0),
6: ('pin', p.UnicodeType, 0),
7: ('language', p.UnicodeType, 0),
8: ('label', p.UnicodeType, 0),
9: ('imported', p.BoolType, 0),
10: ('homescreen', p.BytesType, 0),
11: ('u2f_counter', p.UVarintType, 0),
12: ('needs_backup', p.BoolType, 0),
13: ('flags', p.UVarintType, 0),
}