Onionr/src/onionrtypes/__init__.py

22 lines
622 B
Python
Raw Normal View History

from typing import NewType
UserID = NewType('UserID', str)
UserIDSecretKey = NewType('UserIDSecretKey', str)
2020-06-17 05:00:52 +00:00
LANIP = NewType('LANIP', 'str')
2019-11-04 10:52:38 +00:00
DeterministicKeyPassphrase = NewType('DeterministicKeyPassphrase', str)
2019-11-16 04:18:38 +00:00
BlockHash = NewType('BlockHash', str)
OnboardingConfig = NewType('OnboardingConfig', str)
# JSON serializable string. e.g. no raw bytes
JSONSerializable = NewType('JSONSerializable', str)
# Return value of some functions or methods, denoting operation success
# Do not use for new code
BooleanSuccessState = NewType('BooleanSuccessState', bool)
OnionAddressString = NewType('OnionAddressString', str)