Onionr/src/onionrtypes/__init__.py

23 lines
639 B
Python
Raw Normal View History

from typing import NewType
UserID = NewType('UserID', str)
UserIDSecretKey = NewType('UserIDSecretKey', str)
LoopBackIP = NewType('LoopBackIP', str)
2020-06-17 05:00:52 +00:00
2019-11-04 10:52:38 +00:00
DeterministicKeyPassphrase = NewType('DeterministicKeyPassphrase', str)
2020-10-25 04:12:42 +00:00
Ed25519PublicKeyBytes = NewType('Ed25519PublicKeyBytes', bytes)
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)