Skip to content

Commit

Permalink
Anoncreds - Send full registry list when getting revocation states (#…
Browse files Browse the repository at this point in the history
…2946)

Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale committed May 14, 2024
1 parent 6b0aa4e commit 0da1552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aries_cloudagent/anoncreds/default/legacy_indy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ async def _get_or_fetch_rev_reg_def_max_cred_num(

def _indexes_to_bit_array(self, indexes: List[int], size: int) -> List[int]:
"""Turn a sequence of indexes into a full state bit array."""
return [1 if index in indexes else 0 for index in range(1, size + 1)]
return [1 if index in indexes else 0 for index in range(0, size + 1)]

async def _get_ledger(self, profile: Profile, rev_reg_def_id: str):
async with profile.session() as session:
Expand Down

0 comments on commit 0da1552

Please sign in to comment.