Skip to content

Commit

Permalink
Better access to internal values (for debugging)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Henkes committed Mar 16, 2018
1 parent 448ee66 commit dd03baf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions x3dh/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,18 @@ def initSessionPassive(self, session_init_data, allow_no_otpk = False):
def spk(self):
return self.__spk["key"]

@property
def spk_signature(self):
return self.__spk["signature"]

@property
def ik(self):
return self.__ik

@property
def otpks(self):
return self.__otpks

@property
def changed(self):
"""
Expand Down

0 comments on commit dd03baf

Please sign in to comment.