2020-05-11 21:05:04 +02:00
|
|
|
import RNS
|
|
|
|
|
2016-06-03 19:02:02 +02:00
|
|
|
class Interface:
|
|
|
|
IN = False
|
|
|
|
OUT = False
|
|
|
|
FWD = False
|
|
|
|
RPT = False
|
|
|
|
name = None
|
|
|
|
|
|
|
|
def __init__(self):
|
2020-05-11 21:05:04 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
def get_hash(self):
|
2020-08-13 12:15:56 +02:00
|
|
|
# TODO: Maybe expand this to something more unique
|
2021-05-16 16:15:57 +02:00
|
|
|
return RNS.Identity.full_hash(str(self).encode("utf-8"))
|