Start implementing auth chains

This commit is contained in:
Erik Johnston 2014-11-06 18:42:18 +00:00
parent 8421cabb9d
commit bf6b72eb55
8 changed files with 115 additions and 6 deletions

View file

@ -55,6 +55,18 @@ class SignatureStore(SQLBaseStore):
or_ignore=True,
)
def get_event_reference_hashes(self, event_ids):
def f(txn):
return [
self._get_event_reference_hashes_txn(txn, ev)
for ev in event_ids
]
return self.runInteraction(
"get_event_reference_hashes",
f
)
def _get_event_reference_hashes_txn(self, txn, event_id):
"""Get all the hashes for a given PDU.
Args: