2019-11-04 06:31:13 +00:00
|
|
|
from typing import NewType
|
|
|
|
|
|
|
|
UserID = NewType('UserID', str)
|
|
|
|
UserIDSecretKey = NewType('UserIDSecretKey', str)
|
|
|
|
|
2020-08-09 02:18:56 +00:00
|
|
|
LANIP = NewType('LANIP', 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)
|
|
|
|
|
2019-11-16 04:18:38 +00:00
|
|
|
BlockHash = NewType('BlockHash', str)
|
2019-11-27 00:01:32 +00:00
|
|
|
|
|
|
|
OnboardingConfig = NewType('OnboardingConfig', str)
|
2019-11-30 08:42:49 +00:00
|
|
|
|
2019-12-12 08:47:33 +00:00
|
|
|
# JSON serializable string. e.g. no raw bytes
|
2019-11-30 08:42:49 +00:00
|
|
|
JSONSerializable = NewType('JSONSerializable', str)
|
2019-12-12 08:47:33 +00:00
|
|
|
|
|
|
|
# Return value of some functions or methods, denoting operation success
|
|
|
|
# Do not use for new code
|
|
|
|
BooleanSuccessState = NewType('BooleanSuccessState', bool)
|
2020-02-01 00:23:48 +00:00
|
|
|
|
|
|
|
OnionAddressString = NewType('OnionAddressString', str)
|