Skip to content

Commit 96da371

Browse files
authored
Repair anoncreds holder revocation list request (#3580)
Signed-off-by: jamshale <jamiehalebc@gmail.com>
1 parent 4a2b2d6 commit 96da371

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

acapy_agent/anoncreds/holder.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Indy holder implementation."""
1+
"""Anoncreds holder implementation."""
22

33
import asyncio
44
import json
@@ -597,10 +597,10 @@ async def create_presentation(
597597
598598
Args:
599599
presentation_request: Valid indy format presentation request
600-
requested_credentials: Indy format requested credentials
601-
schemas: Indy formatted schemas JSON
602-
credential_definitions: Indy formatted credential definitions JSON
603-
rev_states: Indy format revocation states JSON
600+
requested_credentials: Anoncreds format requested credentials
601+
schemas: Anoncreds formatted schemas JSON
602+
credential_definitions: Anoncreds formatted credential definitions JSON
603+
rev_states: Anoncreds format revocation states JSON
604604
605605
"""
606606

@@ -690,9 +690,9 @@ async def create_presentation_w3c(
690690
presentation_request: Valid indy format presentation request
691691
requested_credentials_w3c: W3C format requested credentials
692692
credentials_w3c_metadata: W3C format credential metadata
693-
schemas: Indy formatted schemas JSON
694-
credential_definitions: Indy formatted credential definitions JSON
695-
rev_states: Indy format revocation states JSON
693+
schemas: Anoncreds formatted schemas JSON
694+
credential_definitions: Anoncreds formatted credential definitions JSON
695+
rev_states: Anoncreds format revocation states JSON
696696
697697
"""
698698
present_creds = PresentCredentials()

acapy_agent/protocols/present_proof/anoncreds/pres_exch_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ async def _get_revocation_lists(self, requested_referents: dict, credentials: di
166166
result = await anoncreds_registry.get_revocation_list(
167167
self._profile,
168168
rev_reg_id,
169-
reft_non_revoc_interval.get("to", epoch_now),
169+
timestamp_from=reft_non_revoc_interval.get("from", 0),
170+
timestamp_to=reft_non_revoc_interval.get("to", epoch_now),
170171
)
171172

172173
rev_lists[key] = (

demo/runners/faber.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ async def main(args):
773773
raise Exception(
774774
"Error invalid credential type:" + faber_agent.cred_type
775775
)
776-
776+
log_status(
777+
"Send a proof request to X: "
778+
+ json.dumps(proof_request_web_request)
779+
)
777780
await agent.admin_POST(
778781
"/present-proof-2.0/send-request", proof_request_web_request
779782
)

0 commit comments

Comments
 (0)